Removed share_open function.
Also, some more cleanup style changes has been made.
This commit is contained in:
1 parent
3f8844832d
commit
a04b02b5a2
5 files changed
+181
-253
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user