#NEWLINE# def push_data( self , item , key , data ) : #NEWLINE# #INDENT# if ( self . postprocessor is not None ) : #NEWLINE# #INDENT# result = self . postprocessor ( self . path , key , data ) #NEWLINE# if ( result is None ) : #NEWLINE# #INDENT# return item #NEWLINE# #UNINDENT# ( key , data ) = result #NEWLINE# #UNINDENT# if ( item is None ) : #NEWLINE# #INDENT# item = self . dict_constructor ( ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# value = item [ key ] #NEWLINE# if isinstance ( value , list ) : #NEWLINE# #INDENT# value . append ( data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# item [ key ] = [ value , data ] #NEWLINE# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# item [ key ] = data #NEWLINE# #UNINDENT# return item