]> granicus.if.org Git - python/commitdiff
#6174: fix indentation in code example.
authorGeorg Brandl <georg@python.org>
Wed, 3 Jun 2009 21:21:09 +0000 (21:21 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 3 Jun 2009 21:21:09 +0000 (21:21 +0000)
Doc/whatsnew/2.6.rst

index 1ffad387f8d903009e95d5735fa57e5444d3a75e..fb2f6fee89dc43225431825709364cb6617b461f 100644 (file)
@@ -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::