kopia lustrzana https://github.com/micropython/micropython-lib
binascii: Prefer builtin unhexlify() implementation.
rodzic
f7e11169de
commit
977837ef74
|
@ -1,5 +1,6 @@
|
||||||
from ubinascii import hexlify
|
from ubinascii import *
|
||||||
|
|
||||||
|
if not "unhexlify" in globals():
|
||||||
def unhexlify(data):
|
def unhexlify(data):
|
||||||
if len(data) % 2 != 0:
|
if len(data) % 2 != 0:
|
||||||
raise ValueError("Odd-length string")
|
raise ValueError("Odd-length string")
|
||||||
|
|
Ładowanie…
Reference in New Issue