#NEWLINE# def encode( self , obj ) : #NEWLINE# #INDENT# pb_out = super ( RecordEncoder , self ) . encode ( obj ) #NEWLINE# out = ZMapTransformOutput ( ) #NEWLINE# out . transformed = pb_out . transformed . SerializeToString ( ) #NEWLINE# out . certificates = [ c . SerializeToString ( ) for c in pb_out . certificates ] #NEWLINE# out . public_keys = [ pk . SerializeToString ( ) for pk in pb_out . public_keys ] #NEWLINE# return pb_out