mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-23 01:27:05 +08:00
Cleanup some code and a small Python 2 fix.
This commit is contained in:
1 parent
75e09baee9
commit
1ef507e5e6
2 files changed
+9
-91
No files matched your search
@@ -205,7 +205,8 @@ def u(string):
|
||||
"""
|
||||
if is_py3:
|
||||
return str(string)
|
||||
elif not isinstance(string, unicode):
|
||||
|
||||
if not isinstance(string, unicode):
|
||||
return unicode(str(string), 'UTF-8')
|
||||
return string
|
||||
|
||||
|
||||
Reference in new issue
Block a user