Commits

Michael Merickel  committed 657700b

made __iter__ subclassable in multidict

  • Participants
  • Parent commits 20217f8

Comments (0)

Files changed (1)

File webob/multidict.py

         for k, v in self._items:
             yield k
 
-    __iter__ = iterkeys
+    def __iter__(self):
+        return self.iterkeys()
     
     def iteritems(self):
         return iter(self._items)
         for k in _iterkeys(self.multi):
             yield self._decode_key(k)
 
-    __iter__ = iterkeys
-
     def iteritems(self):
         for k, v in _iteritems(self.multi):
             yield (self._decode_key(k), self._decode_value(v))