Remove some unnecessary utf-8 references

This commit is contained in:
Dave Halter committed 2020-07-02 03:30:41 +02:00
1 parent 8ee0c8593e
commit 332631434c
9 files changed
+6 -22

No files matched your search

-8
View File
@@ -134,14 +134,6 @@ class ImplicitNSInfo(object):
self.paths = paths
try:
encoding = sys.stdout.encoding
if encoding is None:
encoding = 'utf-8'
except AttributeError:
encoding = 'ascii'
def u(string, errors='strict'):
"""Cast to unicode DAMMIT!
Written because Python2 repr always implicitly casts to a string, so we