#NEWLINE# def format_handlers( formats , handlers ) : #NEWLINE# #INDENT# return [ ( ( prefix + url ) , handler , { #NEWLINE# #INDENT# 'format' : format , #NEWLINE# 'format_prefix' : prefix , #NEWLINE# #UNINDENT# } ) for format in formats for ( url , handler ) in handlers for prefix in [ ( format_prefix + format ) ] ]