micropython/tests/extmod/ubinascii_micropython.py

9 wiersze
171 B
Python

try:
import ubinascii as binascii
except ImportError:
import binascii
# two arguments supported in uPy but not CPython
a = binascii.hexlify(b'123', ':')
print(a)