]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
__iter__ is not needed in WireData at all
authorBob Halley <halley@dnspython.org>
Mon, 1 Jun 2020 17:36:01 +0000 (10:36 -0700)
committerBob Halley <halley@dnspython.org>
Mon, 1 Jun 2020 17:36:01 +0000 (10:36 -0700)
dns/wiredata.py

index 64bc120a79d30d54c37ecadbf0af2aaa7d044abb..a3fab7348514d1c98d323506d0923c9aba2b5569 100644 (file)
@@ -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)