From d13114e9078a5491e1332ceb8adb4960ef5b0898 Mon Sep 17 00:00:00 2001 From: yelhamer <16624109+yelhamer@users.noreply.github.com> Date: Fri, 21 Jul 2023 15:43:22 +0100 Subject: [PATCH] remove SampleHashes __iter__method Co-authored-by: Willi Ballenthin --- capa/features/extractors/base_extractor.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/capa/features/extractors/base_extractor.py b/capa/features/extractors/base_extractor.py index 07a40846..b67488c6 100644 --- a/capa/features/extractors/base_extractor.py +++ b/capa/features/extractors/base_extractor.py @@ -31,11 +31,6 @@ class SampleHashes: sha1: str sha256: str - def __iter__(self) -> Iterator[str]: - yield self.md5 - yield self.sha1 - yield self.sha256 - @classmethod def from_bytes(cls, buf: bytes) -> "SampleHashes": md5 = hashlib.md5()