blob: 79fdc15883862932d12e70073d427fb9ab9f2a5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- a/blist/_sortedlist.py
+++ b/blist/_sortedlist.py
@@ -419,8 +419,7 @@ def add(self, value):
def __iter__(self):
it = super(_setmixin, self).__iter__()
- while True:
- item = next(it)
+ for item in it:
n = len(self)
yield item
if n != len(self):
|