Speed-up __iter__() mixin method.
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index 6c27e66..30ec7d4 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -496,13 +496,13 @@
 
     def __iter__(self):
         i = 0
-        while True:
-            try:
+        try:
+            while True:
                 v = self[i]
-            except IndexError:
-                break
-            yield v
-            i += 1
+                yield v
+                i += 1
+        except IndexError:
+            return
 
     def __contains__(self, value):
         for v in self: