File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1414from django .core .exceptions import ImproperlyConfigured , SuspiciousOperation
1515from django .core .files .storage import Storage
1616from django .conf import settings
17- from django .utils .encoding import force_text , force_bytes
17+ from django .utils .encoding import force_str
1818from django .utils .deconstruct import deconstructible
1919from django .utils .timezone import utc
2020from tempfile import SpooledTemporaryFile
@@ -97,7 +97,7 @@ def _get_key_name(self, name):
9797 # urljoin won't work if name is absolute path
9898 name = name .lstrip ('/' )
9999
100- base_path = force_text (self .location )
100+ base_path = force_str (self .location )
101101 final_path = urljoin (base_path + "/" , name )
102102 name = os .path .normpath (final_path .lstrip ('/' ))
103103
You can’t perform that action at this time.
0 commit comments