#NEWLINE# def set_pdu( self , pdu ) : #NEWLINE# #INDENT# if ( isinstance ( pdu , _ImplicitPDU ) or isinstance ( pdu , _BulkPDU ) ) : #NEWLINE# #INDENT# self . pdu = pdu #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'Given PDU must be a PDU type.' )