ошибка в localize_path

sandbox1
inpos 2016-03-10 18:15:54 +03:00
parent af498c04a1
commit f9840c39c0
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import chardet
def localize_path(path):
path = path.decode(chardet.detect(path)['encoding'])
if not sys.platform.startswith('win'):
path = path.encode(sys.getfilesystemencoding())
path = path.encode(True and sys.getfilesystemencoding() or 'utf-8')
return path
def can_bind(host, port):