def select_class(cache, selector):
 items = cache.class_map[ascii_lower(selector.class_name)]
 if items:
  for elem in cache.iterparsedselector(selector.selector):
   if (elem in items):
    (yield elem)

def select_class ( cache , selector ) : items = cache . class_map [ ascii_lower ( selector . class_name ) ] if items : for elem in cache . iterparsedselector ( selector . selector ) : if ( elem in items ) : ( yield elem )
a class selector .