type capa.features.freeze

This commit is contained in:
William Ballenthin
2021-06-09 22:51:09 -06:00
parent 3f55f678ca
commit 6f67619621

View File

@@ -228,7 +228,7 @@ def dump(extractor):
return MAGIC + zlib.compress(dumps(extractor).encode("utf-8"))
def is_freeze(buf):
def is_freeze(buf: bytes) -> bool:
return buf[: len(MAGIC)] == MAGIC