mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1960 (html2epub limits in number of files allowed)
This commit is contained in:
parent
f7257a3ec9
commit
182699c6a4
@ -273,7 +273,12 @@ def traverse(path_to_html_file, max_levels=sys.maxint, verbose=0, encoding=None)
|
|||||||
hf.links.remove(link)
|
hf.links.remove(link)
|
||||||
|
|
||||||
next_level = list(nl)
|
next_level = list(nl)
|
||||||
return flat, list(depth_first(flat[0], flat))
|
orec = sys.getrecursionlimit()
|
||||||
|
sys.setrecursionlimit(500000)
|
||||||
|
try:
|
||||||
|
return flat, list(depth_first(flat[0], flat))
|
||||||
|
finally:
|
||||||
|
sys.setrecursionlimit(orec)
|
||||||
|
|
||||||
|
|
||||||
def opf_traverse(opf_reader, verbose=0, encoding=None):
|
def opf_traverse(opf_reader, verbose=0, encoding=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user