summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-07-03 13:18:18 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-07-03 13:18:18 (GMT)
commit87b8719869932788d26ae1ed2a94f9c3e3b6da62 (patch)
treeb3ba586bce511129e54562084c515e56ec693d8a /Lib
parent90198fa629ba2dfc67ccb22a90b8e4f41be794d3 (diff)
downloadcpython-87b8719869932788d26ae1ed2a94f9c3e3b6da62.zip
cpython-87b8719869932788d26ae1ed2a94f9c3e3b6da62.tar.gz
cpython-87b8719869932788d26ae1ed2a94f9c3e3b6da62.tar.bz2
xrange -> range
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib2to3/refactor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py
index c5398c8..339b94f 100644
--- a/Lib/lib2to3/refactor.py
+++ b/Lib/lib2to3/refactor.py
@@ -550,7 +550,7 @@ class MultiprocessRefactoringTool(RefactoringTool):
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 @@ class MultiprocessRefactoringTool(RefactoringTool):
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():