pasteorg / paste

Python Paste (core) repository
Other
59 stars 47 forks source link

Fix py3 compatibility in paste.wsgilib.catch_errors #70

Closed cjwatson closed 2 years ago

cjwatson commented 2 years ago

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.

I ran into this while upgrading Launchpad to a development release of loggerhead (for bazaar.launchpad.net). I haven't quite worked out why I didn't see this before, but at any rate it seems like a clear enough bug.

cdent commented 2 years ago

LGTM. I'll merge this and do a new release later in the day.

It worries me that people still use paste, though...

cjwatson commented 2 years ago

It's definitely on my to-do list to replace it with something else, but a bit low-priority while it works.

cdent commented 2 years ago

but a bit low-priority while it works

Yeah, I totally know how that can be.

cdent commented 2 years ago

3.5.2 has been released: https://pypi.org/project/Paste/

cjwatson commented 2 years ago

Thanks for your help!