contrib/import-checker.py
changeset 26781 1aee2ab0f902
parent 26221 ae65b1b4cb46
child 26954 f804bf27439b
equal deleted inserted replaced
26780:bbf544b5f2e9 26781:1aee2ab0f902
    63     `localmods` is a dict (or set), of which key is an absolute
    63     `localmods` is a dict (or set), of which key is an absolute
    64     `dotted_name_of_path()`-ed source file path of locally defined (=
    64     `dotted_name_of_path()`-ed source file path of locally defined (=
    65     Mercurial specific) modules.
    65     Mercurial specific) modules.
    66 
    66 
    67     This function assumes that module names not existing in
    67     This function assumes that module names not existing in
    68     `localmods` are ones of Python standard libarary.
    68     `localmods` are from the Python standard library.
    69 
    69 
    70     This function returns the function, which takes `name` argument,
    70     This function returns the function, which takes `name` argument,
    71     and returns `(absname, dottedpath, hassubmod)` tuple if `name`
    71     and returns `(absname, dottedpath, hassubmod)` tuple if `name`
    72     matches against locally defined module. Otherwise, it returns
    72     matches against locally defined module. Otherwise, it returns
    73     False.
    73     False.