]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Use range instead of xrange
authorSerge S. Koval <serge.koval+github@gmail.com>
Sat, 13 Apr 2013 21:00:27 +0000 (00:00 +0300)
committerSerge S. Koval <serge.koval+github@gmail.com>
Sat, 13 Apr 2013 21:00:27 +0000 (00:00 +0300)
tornado/stack_context.py

index 7b4839a1b93d25e80ada799d55f023e08585c8bf..64c815f0e6936ef839f78637c961bd91a144ed5f 100644 (file)
@@ -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: