This commit is contained in:
Miroslav Stampar
2019-11-30 23:10:20 +01:00
parent f947c5f76e
commit 20d875a8ce
4 changed files with 10 additions and 4 deletions

View File

@@ -1970,7 +1970,7 @@ def safeFilepathEncode(filepath):
retVal = filepath
if filepath and six.PY2 and isinstance(filepath, six.text_type):
retVal = filepath.encode(sys.getfilesystemencoding() or UNICODE_ENCODING)
retVal = getBytes(filepath, sys.getfilesystemencoding() or UNICODE_ENCODING)
return retVal