From 07f3179e580277ea483b4815319f25171cac8e62 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 24 Jul 2019 15:14:08 +0100 Subject: [PATCH] [stream-refactor] Py2.4 compat fix for iter_split_test. --- tests/iter_split_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/iter_split_test.py b/tests/iter_split_test.py index 6178ef0c..ee5e97d9 100644 --- a/tests/iter_split_test.py +++ b/tests/iter_split_test.py @@ -6,6 +6,12 @@ import mitogen.core import testlib +try: + next +except NameError: + def next(it): + return it.next() + class IterSplitTest(unittest2.TestCase): func = staticmethod(mitogen.core.iter_split)