mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-18 03:53:32 +02:00
Removed polyglots unicode_type usage
This commit is contained in:
@@ -14,7 +14,6 @@ import sys, os
|
||||
|
||||
from ebook_converter.ebooks.rtf2xml import copy, border_parse
|
||||
from ebook_converter.ptempfile import better_mktemp
|
||||
from ebook_converter.polyglot.builtins import unicode_type
|
||||
|
||||
from . import open_for_read, open_for_write
|
||||
|
||||
@@ -623,7 +622,7 @@ if another paragraph_def is found, the state changes to collect_tokens.
|
||||
num = len(self.__style_num_strings)
|
||||
new_style = 1
|
||||
num = '%04d' % num
|
||||
self.__att_val_dict['style-num'] = 's' + unicode_type(num)
|
||||
self.__att_val_dict['style-num'] = 's' + str(num)
|
||||
if new_style:
|
||||
self.__write_body_styles()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user