Update to 2.7.3
[profile/ivi/python.git] / Lib / _abcoll.py
index 73e668c..e7376e4 100644 (file)
@@ -82,7 +82,7 @@ class Iterator(Iterable):
     @classmethod
     def __subclasshook__(cls, C):
         if cls is Iterator:
-            if _hasattr(C, "next"):
+            if _hasattr(C, "next") and _hasattr(C, "__iter__"):
                 return True
         return NotImplemented