Make the minimal, safe changes required to convert the repo's code to be syntax compatible with both Python 2 and Python 3. There will definitely be more work required to complete the port to Python 3 but this is a minimal, safe first step.
Run: futurize --stage1 -w **/*.py # done in zsh for ** globbing
Make the minimal, safe changes required to convert the repo's code to be syntax compatible with both Python 2 and Python 3. There will definitely be more work required to complete the port to Python 3 but this is a minimal, safe first step.
Run:
futurize --stage1 -w **/*.py
# done in zsh for ** globbingSee Stage 1: "safe" fixes http://python-future.org/automatic_conversion.html#stage-1-safe-fixes
$
pip install future
$git checkout -b modernize-python2-code
$futurize --stage1 -w **/*.py
# done in zsh for ** globbing $git commit --all -m "Modernize Python 2 code to get ready for Python 3"
$git push --set-upstream origin modernize-python2-code