#6174: fix indentation in code example.
This commit is contained in:
parent
96b79c851a
commit
0eca77c40c
|
@ -678,15 +678,15 @@ and :meth:`Semaphore` to create shared locks.)
|
||||||
for N in range(1, 1000, 10):
|
for N in range(1, 1000, 10):
|
||||||
p.apply_async(factorial, (N, d))
|
p.apply_async(factorial, (N, d))
|
||||||
|
|
||||||
# Mark pool as closed -- no more tasks can be added.
|
# Mark pool as closed -- no more tasks can be added.
|
||||||
p.close()
|
p.close()
|
||||||
|
|
||||||
# Wait for tasks to exit
|
# Wait for tasks to exit
|
||||||
p.join()
|
p.join()
|
||||||
|
|
||||||
# Output results
|
# Output results
|
||||||
for k, v in sorted(d.items()):
|
for k, v in sorted(d.items()):
|
||||||
print k, v
|
print k, v
|
||||||
|
|
||||||
This will produce the output::
|
This will produce the output::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue