#NEWLINE# def get_total_size( self ) : #NEWLINE# #INDENT# with c . contracts_lock : #NEWLINE# #INDENT# if ( len ( self . contracts ) > 0 ) : #NEWLINE# #INDENT# return sum ( [ c . size for c in self . contracts . values ( ) ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 0