[Python-checkins] r73186 - python/trunk/Doc/whatsnew/2.6.rst

georg.brandl python-checkins at python.org
Wed Jun 3 23:21:09 CEST 2009


Author: georg.brandl
Date: Wed Jun  3 23:21:09 2009
New Revision: 73186

Log:
#6174: fix indentation in code example.

Modified:
   python/trunk/Doc/whatsnew/2.6.rst

Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst	(original)
+++ python/trunk/Doc/whatsnew/2.6.rst	Wed Jun  3 23:21:09 2009
@@ -678,15 +678,15 @@
         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::
 


More information about the Python-checkins mailing list