-
-
Notifications
You must be signed in to change notification settings - Fork 765
Python 2 to Python 3 transition
Nick Maludy edited this page Jan 18, 2018
·
5 revisions
This page details information about transforming StackStorm from using Python 2 to Python 3
python3.5 -m modernize -x libmodernize.fixes.fix_print st2common/
If you pip install pigments
you can pipe the output of modernize
through pygments -l diff
python3.5 -m modernize -x libmodernize.fixes.fix_print st2common/ | pygmentize -l diff
Then if you're happy add -w -n
it will write the changes (without a backup, since we're using git).
python3.5 -m modernize -x libmodernize.fixes.fix_print st2common/ -w -n
Use these tools to find dependencies that don't support Python 3: