Convert bytes to a hex string
(b)
| 38 | return binascii.unhexlify(h.encode('utf8')) |
| 39 | |
| 40 | def b2x(b): |
| 41 | """Convert bytes to a hex string""" |
| 42 | return binascii.hexlify(b).decode('utf8') |
| 43 | |
| 44 | def lx(h): |
| 45 | """Convert a little-endian hex string to bytes |
no outgoing calls