Kaydet (Commit) 0eca77c4 authored tarafından Georg Brandl's avatar Georg Brandl

#6174: fix indentation in code example.

üst 96b79c85
......@@ -678,15 +678,15 @@ and :meth:`Semaphore` to create shared locks.)
for N in range(1, 1000, 10):
p.apply_async(factorial, (N, d))
# Mark pool as closed -- no more tasks can be added.
p.close()
# Mark pool as closed -- no more tasks can be added.
p.close()
# Wait for tasks to exit
p.join()
# Wait for tasks to exit
p.join()
# Output results
for k, v in sorted(d.items()):
print k, v
# Output results
for k, v in sorted(d.items()):
print k, v
This will produce the output::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment