#NEWLINE# def apply_costs( self , costs ) : #NEWLINE# #INDENT# self . check_costs ( costs ) #NEWLINE# for ( pool , cost ) in costs . items ( ) : #NEWLINE# #INDENT# setattr ( self , pool , ( getattr ( self , pool ) - self ) ) #NEWLINE# #UNINDENT# self . check_status ( )