зеркало из https://github.com/mozilla/pjs.git
14 строки
504 B
Python
Executable File
14 строки
504 B
Python
Executable File
def test(mod, path, entity = None):
|
|
import re
|
|
# ignore anyhting but Thunderbird
|
|
if mod not in ("netwerk", "dom", "toolkit", "security/manager",
|
|
"mail", "editor/ui", "extensions/spellcheck",
|
|
"other-licenses/branding/thunderbird"):
|
|
return False
|
|
# ignore MOZ_LANGPACK_CONTRIBUTORS
|
|
if mod == "mail" and path == "defines.inc" and \
|
|
entity == "MOZ_LANGPACK_CONTRIBUTORS":
|
|
return False
|
|
# ignore dictionaries
|
|
return not mod == "extensions/spellcheck"
|