summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Medrela <chris.medrela@gmail.com>2013-07-12 10:43:50 +0200
committerChristopher Medrela <chris.medrela@gmail.com>2013-07-12 12:38:00 +0200
commitb4c61c2665c0aa06dcdc4f823be03f23b9696408 (patch)
tree4ee5c05e8ee7ee0e127521380fd714f772ce88bb
parent59ebe39812858ba37e83ab0ee886f676980d472d (diff)
Added clarification comments to django.utils.image; refs #19934
-rw-r--r--django/utils/image.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/utils/image.py b/django/utils/image.py
index 2fd0c6e6b0..dd2fab6197 100644
--- a/django/utils/image.py
+++ b/django/utils/image.py
@@ -1,7 +1,7 @@
# -*- 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
@@ -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...