diff options
Diffstat (limited to 'Master/texmf-dist/scripts/latex-make/figdepth.py')
-rwxr-xr-x | Master/texmf-dist/scripts/latex-make/figdepth.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/latex-make/figdepth.py b/Master/texmf-dist/scripts/latex-make/figdepth.py index 7782d0b29e6..095e0f4a7d7 100755 --- a/Master/texmf-dist/scripts/latex-make/figdepth.py +++ b/Master/texmf-dist/scripts/latex-make/figdepth.py @@ -9,6 +9,7 @@ args : all depths we want to keep """ +from __future__ import print_function import optparse import os.path import sys @@ -25,7 +26,7 @@ def main(): display = True def show(depth, line): if depth in depths_to_keep: - print comment+line, + print(comment+line, end='') return True else: return False @@ -35,11 +36,11 @@ def main(): continue if line[0] in "\t ": if display: - print line + print(line) else: Fld = line.split(' ', 9999) if not Fld[0] or Fld[0] not in ('1', '2', '3', '4', '5'): - print comment+line + print(comment+line) display = True elif Fld[0] == '4': display = show(Fld[3], line) |