You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I execute book = epub.read_epub("valid.epub", {"ignore_ncx": True})
I get a future warning:
\Lib\site-packages\ebooklib\epub.py:1423: FutureWarning: This search incorrectly ignores the root element, and will be fixed in a future version. If you rely on the current behaviour, change it to './/xmlns:rootfile[@media-type]'
for root_file in tree.findall('//xmlns:rootfile[@media-type]', namespaces={'xmlns': NAMESPACES['CONTAINERNS']}):
Is there a way to silence this warning without altering the code, like with the ignore_ncx? Thanks.
The text was updated successfully, but these errors were encountered:
When I execute
book = epub.read_epub("valid.epub", {"ignore_ncx": True})
I get a future warning:
Is there a way to silence this warning without altering the code, like with the
ignore_ncx
? Thanks.The text was updated successfully, but these errors were encountered: