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

@@ -9,7 +9,6 @@ import urllib.parse
import uuid
from ebook_converter.utils.smartypants import smartyPants
from ebook_converter.polyglot.builtins import unicode_type
# Last upstream version basis
@@ -683,7 +682,7 @@ class Textile(object):
def footnoteID(self, match):
id, t = match.groups()
if id not in self.fn:
self.fn[id] = unicode_type(uuid.uuid4())
self.fn[id] = str(uuid.uuid4())
fnid = self.fn[id]
if not t:
t = ''
@@ -788,7 +787,7 @@ class Textile(object):
return url
def shelve(self, text):
id = unicode_type(uuid.uuid4()) + 'c'
id = str(uuid.uuid4()) + 'c'
self.shelf[id] = text
return id