From: Georg Brandl Date: Thu, 8 Apr 2010 06:33:16 +0000 (+0000) Subject: Fix indentation. X-Git-Tag: v3.2a1~1201 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3959bd63e963e5e88135b7e482f3622e923d7e3;p=thirdparty%2FPython%2Fcpython.git Fix indentation. --- diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 48b1ccc875d6..f240648f408f 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -61,15 +61,15 @@ object and then calling its :meth:`~Process.start` method. :class:`Process` follows the API of :class:`threading.Thread`. A trivial example of a multiprocess program is :: - from multiprocessing import Process + from multiprocessing import Process def f(name): print('hello', name) - if __name__ == '__main__': - p = Process(target=f, args=('bob',)) - p.start() - p.join() + if __name__ == '__main__': + p = Process(target=f, args=('bob',)) + p.start() + p.join() To show the individual process IDs involved, here is an expanded example::