1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-17 11:43:30 +02:00

Removed polyglots unicode_type usage

This commit is contained in:
2020-04-20 19:25:28 +02:00
parent ef7e2b10be
commit 128705f258
130 changed files with 657 additions and 716 deletions

View File

@@ -3,7 +3,6 @@ from struct import calcsize, unpack, unpack_from
from collections import namedtuple
from ebook_converter.utils.fonts.utils import get_font_names2, get_font_characteristics
from ebook_converter.polyglot.builtins import unicode_type
__license__ = 'GPL v3'
@@ -45,7 +44,7 @@ class FontMetadata(object):
elif wt == 700:
wt = 'bold'
else:
wt = unicode_type(wt)
wt = str(wt)
self.font_weight = wt
self.font_stretch = ('ultra-condensed', 'extra-condensed',