#NEWLINE# def size( self ) : #NEWLINE# #INDENT# if ( self . _size is not None ) : #NEWLINE# #INDENT# return self . _size #NEWLINE# #UNINDENT# ( slurp , size ) = ( io . BytesIO ( ) , 0 ) #NEWLINE# while True : #NEWLINE# #INDENT# data = self . read ( 512 ) #NEWLINE# if ( not data ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# size += slurp . write ( data ) #NEWLINE# #UNINDENT# ( self . _slurp , self . _size ) = ( slurp , size ) #NEWLINE# self . _slurp . seek ( 0 ) #NEWLINE# return size