Confirmed users
656
edits
(→Porting examples: add an example of fixing subprocess.check_output() binary data errors under Py3) |
|||
| Line 58: | Line 58: | ||
See what breaks, then fix it! | See what breaks, then fix it! | ||
==== | ==== Port a Mach Command ==== | ||
The mach driver (toplevel `mach` file) contains a whitelist of commands that still run with Python 2. Pick the command that you'd like to convert and then: | |||
See | # Remove it from the whitelist | ||
# Run: ./mach <command> | |||
# See what breaks and fix it! | |||
# Repeat with a variety of different flags and arguments | |||
# Make sure any Python unittests running in CI have Python 3 enabled (see above) | |||
== How to Port the Code == | == How to Port the Code == | ||