From: Serge S. Koval Date: Sat, 13 Apr 2013 21:00:27 +0000 (+0300) Subject: Use range instead of xrange X-Git-Tag: v3.1.0~121^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f716564dfef9564e301f446f9c657f6cb4ccc066;p=thirdparty%2Ftornado.git Use range instead of xrange --- diff --git a/tornado/stack_context.py b/tornado/stack_context.py index 7b4839a1b..64c815f0e 100644 --- a/tornado/stack_context.py +++ b/tornado/stack_context.py @@ -259,7 +259,7 @@ def wrap(fn): exc = _handle_exception(top, exc) else: # Otherwise take shorter path and run stack contexts in reverse order - for n in xrange(last_ctx - 1, -1, -1): + for n in range(last_ctx - 1, -1, -1): c = stack[n] try: