Module Expr Str Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Dict Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Dict Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Return Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Return Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Continue Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Continue If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return Call NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body If CompareLt Call NameLoad NameLoad Num body Print Str Print BinOpMod Str SubscriptLoad NameLoad Index Num Return Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Print NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad AttributeLoad NameLoad attr
N/A N/A Watchlists

Watchlists is a mechanism that allow a developer (a "watcher") to watch over
portions of code that he is interested in. A "watcher" will be cc-ed to
changes that modify that portion of code, thereby giving him an opportunity
to make comments on codereview.chromium.org even before the change is
committed.
Refer: http://dev.chromium.org/developers/contributing-code/watchlists

When invoked directly from the base of a repository, this script lists out
the watchers for files given on the command line. This is useful to verify
changes to WATCHLISTS files.
 N/A logging N/A os N/A re N/A sys Watchlists N/A object N/A N/A Manage Watchlists.

  This class provides mechanism to load watchlists for a repo and identify
  watchers.
  Usage:
    wl = Watchlists("/path/to/repo/root")
    watchers = wl.GetWatchersForPaths(["/path/to/file1",
                                       "/path/to/file2",])
   N/A _RULES WATCHLISTS N/A _RULES_FILENAME _RULES N/A _repo_root None N/A _defns N/A N/A _watchlists N/A __init__ N/A N/A self repo_root N/A N/A N/A N/A self _repo_root repo_root N/A N/A N/A self _LoadWatchlistRules N/A _GetRulesFilePath N/A N/A self N/A N/A N/A Returns path to WATCHLISTS file. N/A N/A N/A N/A os path join N/A self _repo_root N/A self _RULES_FILENAME N/A _HasWatchlistsFile N/A N/A self N/A N/A N/A Determine if watchlists are available for this repo. N/A N/A N/A N/A os path exists N/A N/A self _GetRulesFilePath N/A _ContentsOfWatchlistsFile N/A N/A self N/A N/A N/A Read the WATCHLISTS file and return its contents. N/A N/A N/A watchlists_file N/A open N/A N/A self _GetRulesFilePath N/A contents N/A N/A watchlists_file read N/A N/A N/A watchlists_file close N/A contents N/A N/A N/A IOError N/A e N/A N/A N/A N/A logging error N/A Cannot read %s: %s N/A N/A N/A self _GetRulesFilePath e N/A N/A _LoadWatchlistRules N/A N/A self N/A N/A N/A Load watchlists from WATCHLISTS file. Does nothing if not present. N/A N/A N/A N/A self _HasWatchlistsFile N/A N/A N/A contents N/A N/A self _ContentsOfWatchlistsFile N/A watchlists_data None N/A N/A N/A watchlists_data N/A eval contents N/A __builtins__ None None N/A N/A N/A SyntaxError N/A e N/A N/A N/A N/A logging error N/A Cannot parse %s. %s N/A N/A N/A self _GetRulesFilePath e N/A N/A defns N/A N/A watchlists_data get WATCHLIST_DEFINITIONS N/A N/A defns N/A N/A N/A N/A logging error N/A WATCHLIST_DEFINITIONS not defined in %s N/A N/A self _GetRulesFilePath N/A N/A watchlists N/A N/A watchlists_data get WATCHLISTS N/A N/A watchlists N/A N/A N/A N/A logging error N/A WATCHLISTS not defined in %s N/A N/A self _GetRulesFilePath N/A N/A N/A self _defns defns N/A N/A self _watchlists watchlists N/A name watchlists N/A N/A N/A name defns N/A N/A N/A N/A logging error N/A %s not defined in %s N/A name N/A N/A self _GetRulesFilePath N/A GetWatchersForPaths N/A N/A self paths N/A N/A N/A Fetch the list of watchers for |paths|

    Args:
      paths: [path1, path2, ...]

    Returns:
      [u1@chromium.org, u2@gmail.com, ...]
     N/A watchers N/A set N/A path paths N/A N/A path N/A N/A path replace N/A os sep / N/A N/A name rule N/A N/A N/A self _defns iteritems N/A N/A N/A name N/A self _watchlists N/A N/A N/A rex_str N/A N/A rule get filepath N/A N/A rex_str N/A N/A N/A N/A N/A re search rex_str path N/A N/A N/A map N/A watchers add N/A N/A self _watchlists N/A name N/A N/A list watchers N/A N/A main N/A N/A argv N/A N/A N/A N/A N/A len argv 2 N/A N/A Usage (from the base of repo): N/A N/A   %s [file-1] [file-2] .... N/A argv N/A 0 N/A 1 N/A wl N/A Watchlists N/A N/A os getcwd N/A watchers N/A N/A wl GetWatchersForPaths N/A argv N/A 1 N/A watchers N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A sys argv