[pypy-svn] r8902 - pypy/dist/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Sat Feb 5 15:34:10 CET 2005


Author: arigo
Date: Sat Feb  5 15:34:10 2005
New Revision: 8902

Modified:
   pypy/dist/pypy/interpreter/pycode.py
Log:
Use range() in preference to xrange(), to please genc.py.

Modified: pypy/dist/pypy/interpreter/pycode.py
==============================================================================
--- pypy/dist/pypy/interpreter/pycode.py	(original)
+++ pypy/dist/pypy/interpreter/pycode.py	Sat Feb  5 15:34:10 2005
@@ -173,14 +173,14 @@
         if not areEqual:
             return space.w_False
 
-        for i in xrange(len(self.co_consts_w)):
+        for i in range(len(self.co_consts_w)):
             if not space.eq_w(self.co_consts_w[i], other.co_consts_w[i]):
                 return space.w_False
 
         if len(self.co_names_w) != len(other.co_names_w):
             return space.w_False
         
-        for i in xrange(len(self.co_names_w)):
+        for i in range(len(self.co_names_w)):
             if not space.eq_w(self.co_names_w[i], other.co_names_w[i]):
                 return space.w_False
         if (self.co_varnames == other.co_varnames and



More information about the Pypy-commit mailing list