Confirmed users
1,989
edits
| Line 76: | Line 76: | ||
==== Port a Mach Command ==== | ==== Port a Mach Command ==== | ||
The mach driver (toplevel `mach` file) contains a whitelist of commands that still run with Python 2. | The mach driver (toplevel `mach` file) contains a whitelist of commands that still run with Python 2. | ||
The whitelist contained in the mach command is py2commands | |||
py2commands=" | |||
addtest | |||
analyze | |||
android | |||
android-emulator | |||
artifact | |||
awsy-test | |||
bootstrap..." | |||
Pick the command that you'd like to convert and then: | |||
# Remove it from the whitelist | # Remove it from the whitelist | ||
# Run: ./mach <command> | # Run: ./mach <command> | ||