1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-20 05:03:35 +02:00

Removed safe_chr function

This commit is contained in:
2020-07-05 17:42:01 +02:00
parent 37ac7730e4
commit c25d63fd05
2 changed files with 3 additions and 8 deletions

View File

@@ -18,7 +18,6 @@ from ebook_converter.constants_old import islinux, isfrozen, \
isbsd, __appname__, __version__, __author__, \
config_dir
from ebook_converter.startup import winutil, winutilerror
from ebook_converter.utils.icu import safe_chr
if False:
@@ -231,7 +230,7 @@ def walk(dir):
def my_unichr(num):
try:
return safe_chr(num)
return chr(num)
except (ValueError, OverflowError):
return '?'