#NEWLINE# def add_entry( self , account , amount ) : #NEWLINE# #INDENT# self . sheet . setdefault ( account , ZERO ) #NEWLINE# self . sheet [ account ] += amount #NEWLINE# if account . parent : #NEWLINE# #INDENT# self . add_entry ( account . parent , amount ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . total += account