mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
python3: fix the preview framework to work with both python 2 and 3 (part 3)
trivial fix: xrange -> range
This commit is contained in:
parent
ff6369d35e
commit
1f5241f747
@ -283,7 +283,7 @@ def find_ps_pages(dvi_file):
|
||||
|
||||
# Use page ranges, as a list of pages could exceed command line
|
||||
# maximum length (especially under Win32)
|
||||
for index in xrange(1, page_index + 1):
|
||||
for index in range(1, page_index + 1):
|
||||
if (not index in ps_or_pdf_pages) and skip:
|
||||
# We were skipping pages but current page shouldn't be skipped.
|
||||
# Add this page to -pp, it could stay alone or become the
|
||||
|
Loading…
x
Reference in New Issue
Block a user