ubinascii_micropython.py 171 Bytes
Newer Older
1
2
3
4
5
6
7
8
try:
    import ubinascii as binascii
except ImportError:
    import binascii

# two arguments supported in uPy but not CPython
a = binascii.hexlify(b'123', ':')
print(a)