]> granicus.if.org Git - python/commitdiff
Fix indentation.
authorGeorg Brandl <georg@python.org>
Sat, 3 Jan 2009 14:29:53 +0000 (14:29 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 3 Jan 2009 14:29:53 +0000 (14:29 +0000)
Doc/library/multiprocessing.rst

index bf2d058f14cf25b84d15a05042f4b04304581cb8..1d959998a48d13737da3092666d69103414de529 100644 (file)
@@ -109,12 +109,12 @@ processes:
       def f(q):
           q.put([42, None, 'hello'])
 
-       if __name__ == '__main__':
-           q = Queue()
-           p = Process(target=f, args=(q,))
-           p.start()
-           print q.get()    # prints "[42, None, 'hello']"
-           p.join()
+      if __name__ == '__main__':
+          q = Queue()
+          p = Process(target=f, args=(q,))
+          p.start()
+          print q.get()    # prints "[42, None, 'hello']"
+          p.join()
 
    Queues are thread and process safe.