| 3731 | import binascii |
| 3732 | |
| 3733 | class octetstring(str): |
| 3734 | def __str__(self): |
| 3735 | return binascii.b2a_hex(self.encode('ascii')).decode("ascii") |
| 3736 | def __repr__(self): |
| 3737 | return self + " repr" |
| 3738 | |
| 3739 | o = octetstring('A') |
| 3740 | self.assertEqual(type(o), octetstring) |
no outgoing calls
searching dependent graphs…