gecko-dev/python
Andrew Halberstadt 0f4437d7d5 Bug 1608783 - [mozlint] Fix bug in 'collapse' when two paths are a prefix of one another, r=Standard8
This was happening because we had two exclude paths that were run through the 'collapse' algorithm:
editor/libeditor/tests/browserscope/lib/richtext
editor/libeditor/tests/browserscope/lib/richtext2

The problem was that in order to determine the base directory, the algorithm called
'os.path.commonprefix'. This function just returns the common string prefix, which
is the '.../lib/richtext' path. Even though in the above, the base *should* have
been '.../lib'.

To fix the problem, we add a check to ensure the computed base doesn't have any
sibling directories with the same prefix. If there are, it means 'commonprefix' was
too greedy.

Differential Revision: https://phabricator.services.mozilla.com/D60173

--HG--
extra : moz-landing-system : lando
2020-01-17 16:18:59 +00:00
..
devtools/migrate-l10n
docs
gdbpp/gdbpp
l10n Bug 1605467 - Migrate text action keys to Fluent. r=fluent-reviewers,Gijs,flod 2020-01-17 11:43:39 +00:00
lldbutils Bug 1603804. Move third_party/python/lldbutils to python/lldbutils. r=ahal 2019-12-20 17:10:12 +00:00
mach
mozboot Bug 1588538 - Add missing file. 2020-01-17 00:23:11 +00:00
mozbuild Bug 1609596 - Add a memory graph to resource usage report. r=froydnj 2020-01-17 02:20:18 +00:00
mozlint Bug 1608783 - [mozlint] Fix bug in 'collapse' when two paths are a prefix of one another, r=Standard8 2020-01-17 16:18:59 +00:00
mozrelease
mozterm
mozversioncontrol
safety
README
mach_commands.py Bug 1604360 - [python] Fix ./mach python --ipython, r=mars 2019-12-17 23:05:29 +00:00
moz.build Bug 1581016 - mozpack/copier.py and mozpack/test_copier.py supports python3 r=glandium,rstewart 2019-12-19 22:00:39 +00:00

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:

* Vendored python modules (use third_party/python instead)
* 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
https://bugzilla.mozilla.org/show_bug.cgi?id=1346025