#NEWLINE# def apply_preprocessors( root , src , dst , processors ) : #NEWLINE# #INDENT# '\n    Preprocessors operate based on the source filename, and apply to each\n    file individually.\n    ' #NEWLINE# matches = [ ( pattern , cmds ) for ( pattern , cmds ) in processors . iteritems ( ) if fnmatch ( src , pattern ) ] #NEWLINE# if ( not matches ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# params = get_format_params ( dst ) #NEWLINE# for ( pattern , cmd_list ) in matches : #NEWLINE# #INDENT# for cmd in cmd_list : #NEWLINE# #INDENT# run_command ( cmd_list , root = root , dst = dst , input = src , params = params ) #NEWLINE# src = dst #NEWLINE# #UNINDENT# #UNINDENT# return True