Commits

Alex Gaynor committed c35afc9

change a pair of range to xrange, to remove 1 guard each during annotation

  • Participants
  • Parent commits 82c9102

Comments (0)

Files changed (2)

File pypy/objspace/flow/framestate.py

             lst[i:i+1] = [tag] + vars
 
 def recursively_unflatten(space, lst):
-    for i in range(len(lst)-1, -1, -1):
+    for i in xrange(len(lst)-1, -1, -1):
         item = lst[i]
         if item in UNPICKLE_TAGS:
             unrollerclass, argcount = UNPICKLE_TAGS[item]

File pypy/objspace/std/multimethod.py

         test = 1
         while True:
             self.ensure_length(test+len(array))
-            for i in range(len(array)):
+            for i in xrange(len(array)):
                 if not (array[i] == self.items[test+i] or
                         array[i] == self.null_value or
                         self.items[test+i] == self.null_value):