Several things were changed between Python 2 and Python 3. Here we are making changes to make the code run on both Py2 and Py3. We are doing this because the end of life of Python 2 is in 167 days. We are using print() function because legacy print statements are syntax errors on Py3.reduce() was moved in Python 3 and raw_input() was removed so we make changes to avoid NameErrors at runtime. Signed-off-by: Christian Clauss cclauss@xxxxxx [cclauss@xxxxxx] cclauss (1): Travis CI: Lint for Python syntax errors and undefined names .travis.yml | 4 +++ contrib/fast-import/import-zips.py | 3 +- contrib/hg-to-git/hg-to-git.py | 47 +++++++++++++++--------------- git-p4.py | 3 ++ 4 files changed, 33 insertions(+), 24 deletions(-) base-commit: 9d418600f4d10dcbbfb0b5fdbc71d509e03ba719 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-290%2Fcclauss%2Fpatch-1-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-290/cclauss/patch-1-v1 Pull-Request: https://github.com/gitgitgadget/git/pull/290 -- gitgitgadget