#NEWLINE# def Write( self , data ) : #NEWLINE# #INDENT# self . _dirty = True #NEWLINE# if isinstance ( self , unicode ) : #NEWLINE# #INDENT# raise IOError ( 'Cannot write unencoded string.' ) #NEWLINE# #UNINDENT# while data : #NEWLINE# #INDENT# data = self . _WritePartial ( data ) #NEWLINE# #UNINDENT# self . size = max ( self . size , self . offset ) #NEWLINE# self . content_last = rdfvalue . RDFDatetime ( ) . Now ( )