mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Revert use of huge_tree=Tre in conversion pipeline as it lcauses lxml to crash with large files in windows
This commit is contained in:
parent
018fc5e81a
commit
2b9196802e
@ -808,7 +808,8 @@ class Manifest(object):
|
||||
pat = re.compile(r'&(%s);'%('|'.join(user_entities.keys())))
|
||||
data = pat.sub(lambda m:user_entities[m.group(1)], data)
|
||||
|
||||
parser = etree.XMLParser(no_network=True, huge_tree=True)
|
||||
# Setting huge_tree=True causes crashes in windows with large files
|
||||
parser = etree.XMLParser(no_network=True)
|
||||
# Try with more & more drastic measures to parse
|
||||
def first_pass(data):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user