Kaydet (Commit) e692c581 authored tarafından Claude Paroz's avatar Claude Paroz

[1.7.x] Removed translatability of PIL error messages

Note these are no longer in master anyway.
üst 8dad9091
...@@ -76,7 +76,6 @@ import warnings ...@@ -76,7 +76,6 @@ import warnings
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
from django.utils.deprecation import RemovedInDjango18Warning from django.utils.deprecation import RemovedInDjango18Warning
from django.utils.translation import ugettext_lazy as _
Image = None Image = None
...@@ -106,7 +105,7 @@ def _detect_image_library(): ...@@ -106,7 +105,7 @@ def _detect_image_library():
except ImportError as err: except ImportError as err:
# Neither worked, so it's likely not installed. # Neither worked, so it's likely not installed.
raise ImproperlyConfigured( raise ImproperlyConfigured(
_("Neither Pillow nor PIL could be imported: %s") % err "Neither Pillow nor PIL could be imported: %s" % err
) )
# ``Image.alpha_composite`` was added to Pillow in SHA: e414c6 & is not # ``Image.alpha_composite`` was added to Pillow in SHA: e414c6 & is not
...@@ -131,8 +130,8 @@ def _detect_image_library(): ...@@ -131,8 +130,8 @@ def _detect_image_library():
import _imaging as PIL_imaging import _imaging as PIL_imaging
except ImportError as err: except ImportError as err:
raise ImproperlyConfigured( raise ImproperlyConfigured(
_("The '_imaging' module for the PIL could not be " "The '_imaging' module for the PIL could not be "
"imported: %s") % err "imported: %s" % err
) )
# Try to import ImageFile as well. # Try to import ImageFile as well.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment