From 0800fb000034d482f96be5dd3b854d3eccb9e86e Mon Sep 17 00:00:00 2001 From: prspkt Date: Fri, 5 Jul 2019 00:53:52 +0300 Subject: testing/py3-blist: modernize * Add patch to fix compatibility with python 3.7. --- testing/py3-blist/fix-python3.7.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 testing/py3-blist/fix-python3.7.patch (limited to 'testing/py3-blist/fix-python3.7.patch') 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): -- cgit v1.2.3