diff --git a/tornado/stack_context.py b/tornado/stack_context.py index 7b4839a1..64c815f0 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: