1
0
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:
2020-06-14 16:25:46 +02:00
parent bed16d24f1
commit add7a8ca56

View File

@@ -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)