diff options
author | Colin Watson <cjwatson@debian.org> | 2022-08-18 21:31:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 21:31:51 +0100 |
commit | b2d156b170744b6eafacce480b2377032bd03be5 (patch) | |
tree | 8aa06f8090649efca7b56dd1e007bc009f65429f /paste | |
parent | 27f25898c8c8cf52fc49175fd8b51e1289000884 (diff) | |
download | paste-git-b2d156b170744b6eafacce480b2377032bd03be5.tar.gz |
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.
Diffstat (limited to 'paste')
-rw-r--r-- | paste/wsgilib.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |