diff options
Diffstat (limited to 'doc/src')
-rwxr-xr-x | doc/src/tools/stitch_text.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/src/tools/stitch_text.py b/doc/src/tools/stitch_text.py index b36727b..dca745b 100755 --- a/doc/src/tools/stitch_text.py +++ b/doc/src/tools/stitch_text.py @@ -19,10 +19,7 @@ def main(): def iter_file_base(fn): f = open(fn) - if sys.version_info[0] >= 3: - have_line = iter(f).__next__ - else: - have_line = iter(f).next + have_line = iter(f).__next__ while not have_line().startswith('.. toctree'): pass |