[Python-checkins] r73805 - python/branches/py3k/Lib/lib2to3/refactor.py

benjamin.peterson python-checkins at python.org
Fri Jul 3 15:18:18 CEST 2009


Author: benjamin.peterson
Date: Fri Jul  3 15:18:18 2009
New Revision: 73805

Log:
xrange -> range

Modified:
   python/branches/py3k/Lib/lib2to3/refactor.py

Modified: python/branches/py3k/Lib/lib2to3/refactor.py
==============================================================================
--- python/branches/py3k/Lib/lib2to3/refactor.py	(original)
+++ python/branches/py3k/Lib/lib2to3/refactor.py	Fri Jul  3 15:18:18 2009
@@ -550,7 +550,7 @@
             raise RuntimeError("already doing multiple processes")
         self.queue = multiprocessing.JoinableQueue()
         processes = [multiprocessing.Process(target=self._child)
-                     for i in xrange(num_processes)]
+                     for i in range(num_processes)]
         try:
             for p in processes:
                 p.start()
@@ -558,7 +558,7 @@
                                                               doctests_only)
         finally:
             self.queue.join()
-            for i in xrange(num_processes):
+            for i in range(num_processes):
                 self.queue.put(None)
             for p in processes:
                 if p.is_alive():


More information about the Python-checkins mailing list