Removed share_open function.

Also, some more cleanup style changes has been made.
This commit is contained in:
gryf committed 2020-06-14 20:47:38 +02:00
1 parent 3f8844832d
commit a04b02b5a2
5 files changed
+181 -253

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ def as_bytes(x, encoding='utf-8'):
def as_unicode(x, encoding='utf-8', errors='strict'):
return str(x)
if isinstance(x, bytes):
return x.decode(encoding, errors)
return str(x)