#NEWLINE# def end( self , tag ) : #NEWLINE# #INDENT# if ( ( tag == 'doc' ) and ( self . currdoc is not None ) ) : #NEWLINE# #INDENT# self . docs . append ( self . currdoc ) #NEWLINE# self . currdoc = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( tag in tag . fieldtags ) and ( self . currdoc is not None ) ) : #NEWLINE# #INDENT# if ( tag == 'int' ) : #NEWLINE# #INDENT# self . currvalue = int ( self . currvalue ) #NEWLINE# #UNINDENT# self . currdoc [ self . currfield ] = self . currvalue #NEWLINE# self . currfield = None #NEWLINE# self . currvalue = None