Commit 35e1b62f authored by Jason R. Coombs's avatar Jason R. Coombs

necessary to explicitly invoke 'iter' in Python 2

parent 8ddfbc2a
...@@ -93,7 +93,7 @@ readme_file = io.open('README.txt', encoding='utf-8') ...@@ -93,7 +93,7 @@ readme_file = io.open('README.txt', encoding='utf-8')
# The release script adds hyperlinks to issues, # The release script adds hyperlinks to issues,
# but if the release script has not run, fall back to the source file # but if the release script has not run, fall back to the source file
changes_names = 'CHANGES (links).txt', 'CHANGES.txt' changes_names = 'CHANGES (links).txt', 'CHANGES.txt'
changes_fn = next(filter(os.path.exists, changes_names)) changes_fn = next(iter(filter(os.path.exists, changes_names)))
changes_file = io.open(changes_fn, encoding='utf-8') changes_file = io.open(changes_fn, encoding='utf-8')
with readme_file: with readme_file:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment