mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 15:43:10 -10:00
When reading config.log, with old-configure output, we may get non-ascii strings, but that currently fails because we're using plain open() to read it. So use encoded_open() instead (which does the same job for other files in the same script). Because the build system can be encapsulated in mach, python configure can have a pipe as stdout/stderr, and in that case, sys.stdout/stderr have an ascii encoding, failing to print out anything that doesn't fit in ascii, consequently failing to print the things we've read from config.log. So reopen stdout and stderr with the right encoding in the configure output handler.
This directory contains common Python code. The basic rule is that if Python code is cross-module (that's "module" in the Mozilla meaning - as in "module ownership") and is MPL-compatible, it should go here. What should not go here: * Python that is not MPL-compatible (see other-licenses/) * Python that has good reason to remain close to its "owning" (Mozilla) module (e.g. it is only being consumed from there). Historical information can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=775243 ## pyyaml | pystache Used in taskcluster related mach commands to update download from github and remove .git and tests. Then run tests in taskcluster/tests/