#NEWLINE# def _prepare( self , argv , input_file ) : #NEWLINE# #INDENT# if ( ( len ( argv ) >= 3 ) and ( argv [ 2 ] == '__map__' ) ) : #NEWLINE# #INDENT# ConfigurationSettings = type ( self ) . map . ConfigurationSettings #NEWLINE# operation = self . map #NEWLINE# argv = argv [ 3 : ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ConfigurationSettings = type ( self ) . ConfigurationSettings #NEWLINE# operation = self . reduce #NEWLINE# argv = argv [ 2 : ] #NEWLINE# #UNINDENT# if ( input_file is None ) : #NEWLINE# #INDENT# reader = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# reader = csv . DictReader ( input_file ) #NEWLINE# #UNINDENT# return ( ConfigurationSettings , operation , argv , reader )