We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cbc71d commit 3c4f0a3Copy full SHA for 3c4f0a3
imagekit/lib.py
@@ -40,7 +40,9 @@ def emit(self, record):
40
# If Django version is under 1.5 then use `force_unicde`
41
# It is used for compatibility between Python 2 and Python 3
42
try:
43
- from django.utils.encoding import force_text, force_bytes, smart_text
+ from django.utils.encoding import (force_str as force_text,
44
+ force_bytes,
45
+ smart_str as smart_text)
46
except ImportError:
47
# Django < 1.5
48
from django.utils.encoding import (force_unicode as force_text,
0 commit comments