1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-02-21 09:15:54 +01:00

Moved replace_entities to utils.entities.

This commit is contained in:
2021-01-03 19:35:03 +01:00
parent 877ea68d42
commit dc4352fd4c
6 changed files with 14 additions and 20 deletions

View File

@@ -8,7 +8,7 @@ import sys
import urllib.parse
from ebook_converter.ebooks.chardet import detect_xml_encoding
from ebook_converter import replace_entities
from ebook_converter.utils import entities
class Link(object):
@@ -154,7 +154,7 @@ class HTMLFile(object):
url = match.group(i)
if url:
break
url = replace_entities(url)
url = entities.replace_entities(url)
try:
link = self.resolve(url)
except ValueError: