#NEWLINE# def write( self , ostream ) : #NEWLINE# #INDENT# tstream = BytearrayStream ( ) #NEWLINE# self . key_material . write ( ostream ) #NEWLINE# for attribute in self . attributes : #NEWLINE# #INDENT# attribute . write ( tstream ) #NEWLINE# #UNINDENT# self . length = tstream . length ( ) #NEWLINE# super ( KeyValue , self ) . write ( ostream ) #NEWLINE# ostream . write ( tstream . buffer )