diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:10:58 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:10:58 +0100 |
commit | 52ecfe48860ed04a80532fd7a01b51fbed9c7217 (patch) | |
tree | 777382fe4f7aaa5c14c934d5b3ab43fb440f49bb /paste/evalexception | |
parent | d39d9311f11036077ecae1be6e2f0024c23949e3 (diff) | |
download | paste-52ecfe48860ed04a80532fd7a01b51fbed9c7217.tar.gz |
Python 3: Replace iterator.next() with six.next(iterator)
Diffstat (limited to 'paste/evalexception')
-rw-r--r-- | paste/evalexception/middleware.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py index cee9147..b6345c5 100644 --- a/paste/evalexception/middleware.py +++ b/paste/evalexception/middleware.py @@ -31,6 +31,7 @@ import sys import os import cgi import traceback +import six from six.moves import cStringIO as StringIO import pprint import itertools @@ -162,7 +163,7 @@ def get_debug_count(environ): if 'paste.evalexception.debug_count' in environ: return environ['paste.evalexception.debug_count'] else: - environ['paste.evalexception.debug_count'] = next = debug_counter.next() + environ['paste.evalexception.debug_count'] = next = six.next(debug_counter) return next class EvalException(object): |