Back to index

lightning-sunbird  0.9+nobinonly
Functions
filter Namespace Reference

Functions

def test

Function Documentation

def filter.test (   mod,
  path,
  entity = None 
)

Definition at line 1 of file filter.py.

00001 def test(mod, path, entity = None):
00002   import re
00003   # ignore anyhting but Thunderbird
00004   if mod not in ("netwerk", "dom", "toolkit", "security/manager",
00005                  "mail", "editor/ui", "extensions/spellcheck",
00006                  "other-licenses/branding/thunderbird"):
00007     return False
00008   # ignore MOZ_LANGPACK_CONTRIBUTORS
00009   if mod == "mail" and path == "defines.inc" and \
00010      entity == "MOZ_LANGPACK_CONTRIBUTORS":
00011     return False
00012   # ignore dictionaries
00013   return not mod == "extensions/spellcheck"
00014