Module Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore TupleLoad Str Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore ListLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Num For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Continue For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If UnaryOpNot NameLoad body Assign NameStore NameLoad Print NameLoad Print BinOpMult Str Call NameLoad NameLoad Print SubscriptLoad AttributeLoad NameLoad attr Slice Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AugAssignAdd NameStore Num If NameLoad body Print Print Str NameLoad decorator_list decorator_list
N/A N/A os N/A re django.conf settings django.core.files.storage default_storage storage django.core.management.base BaseCommand olympia.amo.storage_utils walk_storage N/A _loc_re N/A N/A re compile \\?(loc)\(.*?\) N/A N/A re M N/A re S N/A _exts N/A .py .html N/A _root N/A settings ROOT N/A _subs N/A tuple N/A N/A N/A N/A os path join _root s N/A s N/A mkt Command N/A BaseCommand N/A N/A 
    A very simple parser to find string marked with loc in py and html.
    This is rather naive, so don't worry about it being perfect, it's just
    so that we can find all the strings for the marketplace and pass them on
    to UX people. Or you could do a fancy grep.
     handle N/A N/A self N/A args options N/A N/A count 0 N/A N/A root folders files N/A walk_storage _root N/A N/A N/A N/A N/A root startswith _subs N/A N/A N/A fname files N/A N/A fname N/A N/A N/A os path join root fname N/A N/A N/A fname endswith _exts N/A N/A data N/A N/A N/A N/A storage open fname read N/A found False N/A match N/A N/A _loc_re finditer data N/A N/A N/A found N/A N/A found True N/A fname N/A N/A - N/A len fname N/A N/A N/A match string N/A N/A N/A match start N/A N/A match end N/A count 1 N/A found N/A N/A N/A Strings found: count N/A N/A