1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-19 04:33:34 +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

@@ -3,15 +3,11 @@ from collections import OrderedDict
from operator import itemgetter
from functools import partial
from ebook_converter.utils.icu import safe_chr, ord_string
from ebook_converter.utils.icu import ord_string
from ebook_converter.utils.fonts.sfnt.container import Sfnt
from ebook_converter.utils.fonts.sfnt.errors import UnsupportedFont, NoGlyphs
__license__ = 'GPL v3'
__copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
# TrueType outlines {{{
@@ -253,7 +249,7 @@ def main(args):
def conv_code(c):
if c.upper()[:2] in ('U+', '0X'):
c = int(c[2:], 16)
return safe_chr(int(c))
return chr(int(c))
for c in chars:
if '-' in c: