1
0
forked from VimPlug/jedi

Remove unicode usages

This commit is contained in:
Dave Halter
2020-07-02 03:26:22 +02:00
parent 5a912de937
commit 8ee0c8593e
15 changed files with 13 additions and 56 deletions
+1 -8
View File
@@ -134,13 +134,6 @@ class ImplicitNSInfo(object):
self.paths = paths
# unicode function
try:
unicode = unicode
except NameError:
unicode = str
try:
encoding = sys.stdout.encoding
if encoding is None:
@@ -156,7 +149,7 @@ def u(string, errors='strict'):
unicode, because we check that in the beginning).
"""
if isinstance(string, bytes):
return unicode(string, encoding='UTF-8', errors=errors)
return str(string, encoding='UTF-8', errors=errors)
return string