Moved replace_entities to utils.entities.
This commit is contained in:
1 parent
877ea68d42
commit
dc4352fd4c
6 files changed
+14
-20
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user