mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 23:34:26 +02: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
1 changed files with 2 additions and 1 deletions
|
|
@ -808,7 +808,8 @@ def _parse_xhtml(self, data):
|
|||
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…
Reference in a new issue