#NEWLINE# def _parse_urlconf( files , urlconf ) : #NEWLINE# #INDENT# is_patterns = ( lambda node : ( isinstance ( node , ast . Call ) and is_name ( node . func , 'patterns' ) ) ) #NEWLINE# patterns = filter ( is_patterns , ast . walk ( urlconf . tree ) ) #NEWLINE# return cat ( ( _parse_patterns ( is_patterns , p ) for p in patterns ) )