Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
e692c581
Kaydet (Commit)
e692c581
authored
May 24, 2014
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Removed translatability of PIL error messages
Note these are no longer in master anyway.
üst
8dad9091
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
image.py
django/utils/image.py
+3
-4
No files found.
django/utils/image.py
Dosyayı görüntüle @
e692c581
...
...
@@ -76,7 +76,6 @@ import warnings
from
django.core.exceptions
import
ImproperlyConfigured
from
django.utils.deprecation
import
RemovedInDjango18Warning
from
django.utils.translation
import
ugettext_lazy
as
_
Image
=
None
...
...
@@ -106,7 +105,7 @@ def _detect_image_library():
except
ImportError
as
err
:
# Neither worked, so it's likely not installed.
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
...
...
@@ -131,8 +130,8 @@ def _detect_image_library():
import
_imaging
as
PIL_imaging
except
ImportError
as
err
:
raise
ImproperlyConfigured
(
_
(
"The '_imaging' module for the PIL could not be "
"imported:
%
s"
)
%
err
"The '_imaging' module for the PIL could not be "
"imported:
%
s"
%
err
)
# Try to import ImageFile as well.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment