aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-blist/fix-python3.7.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py3-blist/fix-python3.7.patch')
-rw-r--r--testing/py3-blist/fix-python3.7.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/py3-blist/fix-python3.7.patch b/testing/py3-blist/fix-python3.7.patch
new file mode 100644
index 0000000000..79fdc15883
--- /dev/null
+++ b/testing/py3-blist/fix-python3.7.patch
@@ -0,0 +1,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):