[Python-checkins] r73808 - in python/branches/release31-maint: Lib/lib2to3/refactor.py
benjamin.peterson
python-checkins at python.org
Fri Jul 3 15:25:24 CEST 2009
Author: benjamin.peterson
Date: Fri Jul 3 15:25:24 2009
New Revision: 73808
Log:
Merged revisions 73805 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r73805 | benjamin.peterson | 2009-07-03 08:18:18 -0500 (Fri, 03 Jul 2009) | 1 line
xrange -> range
........
Modified:
python/branches/release31-maint/ (props changed)
python/branches/release31-maint/Lib/lib2to3/refactor.py
Modified: python/branches/release31-maint/Lib/lib2to3/refactor.py
==============================================================================
--- python/branches/release31-maint/Lib/lib2to3/refactor.py (original)
+++ python/branches/release31-maint/Lib/lib2to3/refactor.py Fri Jul 3 15:25:24 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