1
0
mirror of https://github.com/django/django.git synced 2025-10-29 08:36:09 +00:00

Fixed loaddata for Django checkouts with non ASCII chars in the name.

This commit is contained in:
Florian Apolloner
2013-06-03 13:18:16 +02:00
parent 6900cb79dc
commit c9d07d251f
2 changed files with 3 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ def upath(path):
"""
Always return a unicode path.
"""
if not six.PY3:
if not six.PY3 and not isinstance(path, six.text_type):
return path.decode(fs_encoding)
return path