From: Bob Halley Date: Mon, 1 Jun 2020 17:36:01 +0000 (-0700) Subject: __iter__ is not needed in WireData at all X-Git-Tag: v2.0.0rc1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5a1a57864d185ad87d5e93cf952be6da95040c4;p=thirdparty%2Fdnspython.git __iter__ is not needed in WireData at all --- diff --git a/dns/wiredata.py b/dns/wiredata.py index 64bc120a..a3fab734 100644 --- a/dns/wiredata.py +++ b/dns/wiredata.py @@ -41,10 +41,6 @@ class WireData(bytes): except IndexError: raise dns.exception.FormError - def __iter__(self): - for i in range(len(self)): - yield self[i] - def unwrap(self): return bytes(self)