You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python offers native methods for string-byte conversion, eliminating the need for binascii. We should replace binascii.hexlify() with bytes.hex() and binascii.unhexlify() with bytes.fromhex(). https://docs.python.org/3/library/stdtypes.html#bytes.hex
also consider, replacing struct.pack / stuct.unpack() with native to_bytes / from_bytes methods:
Python offers native methods for string-byte conversion, eliminating the need for binascii. We should replace
binascii.hexlify()
withbytes.hex()
andbinascii.unhexlify()
withbytes.fromhex()
.https://docs.python.org/3/library/stdtypes.html#bytes.hex
also consider, replacing
struct.pack
/stuct.unpack()
with nativeto_bytes
/from_bytes
methods:https://docs.python.org/3/library/stdtypes.html#int.to_bytes
The text was updated successfully, but these errors were encountered: