remove SampleHashes __iter__method

Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
yelhamer
2023-07-21 15:43:22 +01:00
committed by GitHub
parent 90298fe2c8
commit d13114e907

View File

@@ -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()