From b013d2fb5c6bb47fd666c860cbdbb64500760db4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 26 Sep 2025 16:51:21 +0530 Subject: [PATCH] ... --- src/calibre/utils/xml_parse.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/calibre/utils/xml_parse.py b/src/calibre/utils/xml_parse.py index 9cbbf0e638..6caf437144 100644 --- a/src/calibre/utils/xml_parse.py +++ b/src/calibre/utils/xml_parse.py @@ -30,7 +30,6 @@ def safe_xml_fromstring(string_or_bytes, recover=True): except etree.XMLSyntaxError: # this happens on windows where if string_or_bytes is unicode and # contains non-BMP chars lxml chokes - # ebook-convert file.epub .azw3 -m metadata.opf if sys.platform != 'win32' or not isinstance(string_or_bytes, str): raise ans = fs(string_or_bytes.encode('utf-8'), parser=create_parser(True, encoding='utf-8'))