mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
d3ccaac56c
On Windows in Python 2, the subprocess module requires the use of bytes with the 'env' argument. For that reason, we would sometimes use byte strings with 'os.environ' like so: os.environ[b"FOO"] = b"bar" However, this is a failure with Python 3 as 'os.environ' must only be used with the text type. This patch creates a new 'setenv' helper that ensures we create new environment with 'bytes' on Python 2, and 'text' on Python 3. Differential Revision: https://phabricator.services.mozilla.com/D38237 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
docs | ||
mach | ||
bash-completion.sh | ||
README.rst | ||
setup.py |
==== mach ==== Mach (German for *do*) is a generic command dispatcher for the command line. To use mach, you install the mach core (a Python package), create an executable *driver* script (named whatever you want), and write mach commands. When the *driver* is executed, mach dispatches to the requested command handler automatically. To learn more, read the docs in ``docs/``.