summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:11:04 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:11:04 +0100
commit0c9afb1c8db0dd01d98277d5fef72245e24ad635 (patch)
tree01c43b02cf4cffbc28d306d07a73dfdd4c39eea1
parent8ceb9705ef26ef79ea5deca197fc3f5202ce849f (diff)
downloadpaste-git-0c9afb1c8db0dd01d98277d5fef72245e24ad635.tar.gz
Python 3: Add __next__() alias to next() method
-rw-r--r--paste/exceptions/errormiddleware.py1
-rw-r--r--paste/lint.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/paste/exceptions/errormiddleware.py b/paste/exceptions/errormiddleware.py
index 5654598..7a0918a 100644
--- a/paste/exceptions/errormiddleware.py
+++ b/paste/exceptions/errormiddleware.py
@@ -243,6 +243,7 @@ class CatchingIter(object):
exc_info)
return response
+ __next__ = next
def close(self):
# This should at least print something to stderr if the
diff --git a/paste/lint.py b/paste/lint.py
index 5eaec9a..8e85a63 100644
--- a/paste/lint.py
+++ b/paste/lint.py
@@ -269,6 +269,8 @@ class IteratorWrapper(object):
"The application returns and we started iterating over its body, but start_response has not yet been called")
self.check_start_response = None
return v
+
+ __next__ = next
def close(self):
self.closed = True