From b2d156b170744b6eafacce480b2377032bd03be5 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 18 Aug 2022 21:31:51 +0100 Subject: Fix py3 compatibility in paste.wsgilib.catch_errors (#70) A Python 3 application might only define `__next__`, not `next`. Use `six.next` instead. This is very similar to https://github.com/cdent/paste/pull/53, and was apparently missed there. --- paste/wsgilib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paste/wsgilib.py b/paste/wsgilib.py index 65f27eb..c05ef2c 100644 --- a/paste/wsgilib.py +++ b/paste/wsgilib.py @@ -209,7 +209,7 @@ class _wrap_app_iter(object): def next(self): try: - return self.app_iter.next() + return six.next(self.app_iter) except StopIteration: if self.ok_callback: self.ok_callback() -- cgit v1.2.1