1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-02-17 06:35:45 +01:00

Removed urlunquote

This commit is contained in:
2020-07-11 16:24:16 +02:00
parent 5fb02998a1
commit c82c4e456c
7 changed files with 29 additions and 40 deletions

View File

@@ -1,7 +1,8 @@
import mimetypes
import re
import urllib.parse
from ebook_converter.ebooks.oeb.base import XPath, urlunquote
from ebook_converter.ebooks.oeb.base import XPath
from ebook_converter.polyglot.binary import from_base64_bytes
from ebook_converter.polyglot.builtins import as_bytes
@@ -32,7 +33,7 @@ class DataURL(object):
'URI, ignoring it')
continue
else:
data = urlunquote(data)
data = urllib.parse.unquote(data)
data = as_bytes(data)
fmt = what(None, data)
if not fmt: