зеркало из https://github.com/mozilla/gecko-dev.git
4899166b70
In order to use StrictOrderingOnAppendListWithFlags instances in mozbuild template functions, we need += to work correctly. This patch implements extend and the associated functions (including +=), disallowing some behaviour where convenient. There's a subtle point hidden in the isinstance() tests: before this patch, it was not easy to compare two StrictOrderingOnAppendListWithFlags instances to see if they had the *same* set of flags. That was because two instances may not have the same class, and would only share the common StrictOrderingOnAppendList, which isn't enough to infer the presence of flags. To be slightly more clear, concrete instances will have class StrictOrderingOnAppendListWithFlagsSpecialization (although there are still multiple instances of that class) and all extend from the unique class StrictOrderingOnAppendListWithFlags. --HG-- extra : commitid : AMVDYt8khR extra : rebase_source : 1ce0698691fc03fbdf6a976e92017c1d60bad15d extra : histedit_source : 4812a565179fb4fac2e4b5cd89c4efe74e794dfa |
||
---|---|---|
.. | ||
PyECC | ||
bitstring | ||
blessings | ||
compare-locales | ||
configobj | ||
eme | ||
futures | ||
jsmin | ||
lldbutils | ||
mach | ||
mock-1.0.0 | ||
mozboot | ||
mozbuild | ||
mozversioncontrol/mozversioncontrol | ||
psutil | ||
pyasn1 | ||
pyasn1-modules | ||
pystache | ||
pyyaml | ||
redo | ||
requests | ||
rsa | ||
slugid | ||
virtualenv | ||
which | ||
README | ||
mach_commands.py | ||
moz.build |
README
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/