capa
capa copied to clipboard
use bytes.hex/bytes.fromhex instead of binascii
Unrelated to this PR, I think we can replace https://github.com/mandiant/capa/blob/960ee864b9daf116e3040b4bf06ce947158b04aa/capa/rules/init.py#L459 with:
b = bytes.fromhex(s)
https://docs.python.org/3/library/stdtypes.html#bytes.fromhex
Originally posted by @s-ff in https://github.com/mandiant/capa/pull/2080#pullrequestreview-2094924732