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

@@ -15,7 +15,6 @@ import sys, os, io
from ebook_converter.ebooks.rtf2xml import get_char_map, copy
from ebook_converter.ebooks.rtf2xml.char_set import char_set
from ebook_converter.ptempfile import better_mktemp
from ebook_converter.polyglot.builtins import unicode_type
from . import open_for_read, open_for_write
@@ -482,7 +481,7 @@ class Hex2Utf8:
the_string = ''
for letter in text:
hex_num = hex(ord(letter))
hex_num = unicode_type(hex_num)
hex_num = str(hex_num)
hex_num = hex_num.upper()
hex_num = hex_num[2:]
hex_num = '\'%s' % hex_num