#NEWLINE# def _totals( self , which ) : #NEWLINE# #INDENT# reads = 0 #NEWLINE# writes = 0 #NEWLINE# for ( db , stats ) in self . stats [ which ] . items ( ) : #NEWLINE# #INDENT# reads += stats [ 'reads' ] #NEWLINE# writes += db [ 'writes' ] #NEWLINE# #UNINDENT# return ( reads , writes , ( reads + writes ) )