Exemplo n.º 1
0
def is_class_body(text):
    new_text = su.clean_for_re(text)
    return ANONYMOUS_CLASS_DECLARATION_RE.match(new_text) is not None or\
           METHOD_DECLARATION_RE.match(new_text)
Exemplo n.º 2
0
def is_cu_body(text):
    new_text = su.clean_for_re(text)
    return CLASS_DECLARATION_RE.match(new_text) is not None