mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-23 14:41:30 +02:00
Removed polyglots unicode_type usage
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from struct import pack, unpack_from
|
||||
from ebook_converter.polyglot.builtins import unicode_type
|
||||
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
@@ -68,7 +67,7 @@ class ByteCode(dict):
|
||||
return float(number), index
|
||||
|
||||
def write_float(self, f, encoding='ignored'):
|
||||
s = unicode_type(f).upper()
|
||||
s = str(f).upper()
|
||||
if s[:2] == "0.":
|
||||
s = s[1:]
|
||||
elif s[:3] == "-0.":
|
||||
|
||||
Reference in New Issue
Block a user