capa icon indicating copy to clipboard operation
capa copied to clipboard

use bytes.hex/bytes.fromhex instead of binascii

Open williballenthin opened this issue 2 months ago • 0 comments

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

williballenthin avatar Jun 04 '24 11:06 williballenthin