]> git.lyx.org Git - features.git/commitdiff
python3: fix the preview framework to work with both python 2 and 3 (part 3)
authorJosé Matos <jamatos@lyx.org>
Thu, 11 May 2017 19:56:56 +0000 (20:56 +0100)
committerJosé Matos <jamatos@lyx.org>
Thu, 11 May 2017 19:56:56 +0000 (20:56 +0100)
trivial fix: xrange -> range

lib/scripts/lyxpreview2bitmap.py

index 11f2ba9f69fd016de91813d50c1f80e90ad3a9d8..6a49f16623935f3f091f99b01d4621c452e7d5d2 100755 (executable)
@@ -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