1
0
forked from VimPlug/jedi

More unicode conversions

This commit is contained in:
Dave Halter
2017-12-24 03:35:15 +01:00
parent a117f9f2e7
commit 40f1354f67
4 changed files with 7 additions and 8 deletions
+1 -2
View File
@@ -242,8 +242,7 @@ def cast_path(obj):
Since this just really complicates everything and Python 2.7 will be EOL
soon anyway, just go with always strings.
"""
return unicode(obj, encoding='utf-8', errors='replace') \
if isinstance(obj, bytes) else obj
return u(obj, errors='replace')
try: