Dismiss HTML vs XML parser warning.
This commit is contained in:
parent
6f1dbf407e
commit
8608ffaf75
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ import tempfile
|
||||||
import tinycss2
|
import tinycss2
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import uuid
|
import uuid
|
||||||
|
import warnings
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
from voussoirkit import betterhelp
|
from voussoirkit import betterhelp
|
||||||
|
|
@ -24,6 +25,8 @@ from voussoirkit import vlogging
|
||||||
|
|
||||||
log = vlogging.get_logger(__name__, 'epubfile')
|
log = vlogging.get_logger(__name__, 'epubfile')
|
||||||
|
|
||||||
|
warnings.filterwarnings("ignore", category=bs4.XMLParsedAsHTMLWarning)
|
||||||
|
|
||||||
HTML_LINK_PROPERTIES = {
|
HTML_LINK_PROPERTIES = {
|
||||||
'a': ['href'],
|
'a': ['href'],
|
||||||
'audio': ['src'],
|
'audio': ['src'],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue