Loading django/utils/image.py +3 −1 Original line number Diff line number Diff line # -*- coding: utf-8 -*- """ To provide a shim layer over Pillow/PIL situation until the PIL support is removed. removed. See #19934. Combinations To Account For Loading Loading @@ -132,6 +132,8 @@ def _detect_image_library(): try: from PIL import ImageFile as PILImageFile except ImportError: # This import cannot fail unless Pillow/PIL install is completely # broken (e.g. missing Python modules). import ImageFile as PILImageFile # Finally, warn about deprecation... Loading Loading
django/utils/image.py +3 −1 Original line number Diff line number Diff line # -*- coding: utf-8 -*- """ To provide a shim layer over Pillow/PIL situation until the PIL support is removed. removed. See #19934. Combinations To Account For Loading Loading @@ -132,6 +132,8 @@ def _detect_image_library(): try: from PIL import ImageFile as PILImageFile except ImportError: # This import cannot fail unless Pillow/PIL install is completely # broken (e.g. missing Python modules). import ImageFile as PILImageFile # Finally, warn about deprecation... Loading