mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-01-17 17:54:11 +01:00
Removed unused function to_unicode
This commit is contained in:
@@ -39,12 +39,6 @@ def guess_extension(*args, **kwargs):
|
||||
return ext
|
||||
|
||||
|
||||
def to_unicode(raw, encoding='utf-8', errors='strict'):
|
||||
if isinstance(raw, str):
|
||||
return raw
|
||||
return raw.decode(encoding, errors)
|
||||
|
||||
|
||||
def unicode_path(path, abs=False):
|
||||
if isinstance(path, bytes):
|
||||
path = path.decode(filesystem_encoding)
|
||||
|
||||
Reference in New Issue
Block a user