summaryrefslogtreecommitdiff
path: root/Doc/library/multiprocessing.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-09-21 06:12:50 +0300
committerBerker Peksag <berker.peksag@gmail.com>2015-09-21 06:12:50 +0300
commit44e4b11dd8ad2d09b71b0ce2f59933d9cab7b743 (patch)
tree695b65f4c06fcfd153aae3bab4379d41911a9921 /Doc/library/multiprocessing.rst
parent96f802a9994dc5fdea07715c83c741fabcc5011a (diff)
downloadcpython-git-44e4b11dd8ad2d09b71b0ce2f59933d9cab7b743.tar.gz
Issue #25169: os.getppid() is available on Windows since Python 3.2.
Patch by Bar Harel.
Diffstat (limited to 'Doc/library/multiprocessing.rst')
-rw-r--r--Doc/library/multiprocessing.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 93f59cdbf6..cd680c513f 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -65,8 +65,7 @@ To show the individual process IDs involved, here is an expanded example::
def info(title):
print(title)
print('module name:', __name__)
- if hasattr(os, 'getppid'): # only available on Unix
- print('parent process:', os.getppid())
+ print('parent process:', os.getppid())
print('process id:', os.getpid())
def f(name):