mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-03 02:53:32 +02:00
Removed share_open function.
Also, some more cleanup style changes has been made.
This commit is contained in:
@@ -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