1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/testing/py3-blist/fix-python3.7.patch
prspkt 0800fb0000
testing/py3-blist: modernize
* Add patch to fix compatibility with python 3.7.
2019-07-05 00:58:08 +03:00

12 lines
328 B
Diff

--- 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):