aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-blist/fix-python3.7.patch
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-07-05 00:53:52 +0300
committerprspkt <prspkt@protonmail.com>2019-07-05 00:58:08 +0300
commit0800fb000034d482f96be5dd3b854d3eccb9e86e (patch)
treed0d46ab8d41a48b076d1d26b7fdbd5da67882a5d /testing/py3-blist/fix-python3.7.patch
parent34ae5cedaba4bbf3aedf44cbe6cb883a3b3763da (diff)
downloadaports-0800fb000034d482f96be5dd3b854d3eccb9e86e.tar.bz2
aports-0800fb000034d482f96be5dd3b854d3eccb9e86e.tar.xz
testing/py3-blist: modernize
* Add patch to fix compatibility with python 3.7.
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):