def __repr__(self):
        # Jasmin update:
        # Displaying values with %r converter since %s doesnt work with unicode
        r = "PDU [command: %s, sequence_number: %s, command_status: %s" % (self.id, self.seqNum, self.status)
        for mParam in self.mandatoryParams:
            if mParam in self.params:
                r += "\n%s: %r" % (mParam, self.params[mParam])
        for oParam in self.params.keys():
            if oParam not in self.mandatoryParams:
                r += "\n%s: %r" % (oParam, self.params[oParam])                
        r += '\n]'
        return r
dataset/ETHPy150Open jookies/jasmin/jasmin/vendor/smpp/pdu/pdu_types.py/PDU.__repr__/original