summaryrefslogtreecommitdiff
path: root/paste/lint.py
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:10:58 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:10:58 +0100
commit52ecfe48860ed04a80532fd7a01b51fbed9c7217 (patch)
tree777382fe4f7aaa5c14c934d5b3ab43fb440f49bb /paste/lint.py
parentd39d9311f11036077ecae1be6e2f0024c23949e3 (diff)
downloadpaste-52ecfe48860ed04a80532fd7a01b51fbed9c7217.tar.gz
Python 3: Replace iterator.next() with six.next(iterator)
Diffstat (limited to 'paste/lint.py')
-rw-r--r--paste/lint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/lint.py b/paste/lint.py
index 5505663..5eaec9a 100644
--- a/paste/lint.py
+++ b/paste/lint.py
@@ -110,6 +110,7 @@ Some of the things this checks:
"""
import re
+import six
import sys
from types import DictType, StringType, TupleType, ListType
import warnings
@@ -262,7 +263,7 @@ class IteratorWrapper(object):
def next(self):
assert not self.closed, (
"Iterator read after closed")
- v = self.iterator.next()
+ v = six.next(self.iterator)
if self.check_start_response is not None:
assert self.check_start_response, (
"The application returns and we started iterating over its body, but start_response has not yet been called")