Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added clarification comments to django.utils.image; refs #19934

  • Loading branch information...
commit b4c61c2665c0aa06dcdc4f823be03f23b9696408 1 parent 59ebe39
Christopher Medrela authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/utils/
4 django/utils/
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
To provide a shim layer over Pillow/PIL situation until the PIL support is
+removed. See #19934.
Combinations To Account For
@@ -132,6 +132,8 @@ def _detect_image_library():
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...
Please sign in to comment.
Something went wrong with that request. Please try again.