Given an arbitrary bytes-like object, returns a string (that would encode as ASCII) containing the hex-representation of the bytes-like object. Always succeeds.
(b)
| 63 | return binascii.unhexlify(h.encode('ascii')) |
| 64 | |
| 65 | def hexlify_str(b): |
| 66 | """ |
| 67 | Given an arbitrary bytes-like object, returns a string (that would encode |
| 68 | as ASCII) containing the hex-representation of the bytes-like object. |
| 69 | |
| 70 | Always succeeds. |
| 71 | """ |
| 72 | return binascii.hexlify(b).decode('ascii') |
| 73 | |
| 74 | |
| 75 | class JSONRPCError(Exception): |
no outgoing calls
no test coverage detected