Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def attr_in_colorlist(attr, colorlist):
    for subattr in subattrs(attr):
        if subattr in colorlist:
            return True
    return False
        


src/m/a/marionette-0.2/marionette/sanitization/parser.py   marionette(Download)
# <Insert Marionetastical limerick here>
#
from .colorlist import (attr_in_colorlist, kw_blacklist, kw_graylist,
                        mod_whitelist, mod_whitelist_prefixes)
from ast import (Assign, Attribute, Call, ClassDef, Dict, Import, ImportFrom,
    """
    return (attr in mod_whitelist_prefixes or
            attr_in_colorlist(attr, mod_whitelist))
 
 
def is_whitelisted_expansion(attr, mod_whitelist=mod_whitelist, mod_table={}):
    for expansion in alias_expansions(attr, mod_table):
        if not attr_in_colorlist(expansion, mod_whitelist):
            return False
    return True