summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-09-21 03:12:50 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-09-21 03:12:50 (GMT)
commit44e4b11dd8ad2d09b71b0ce2f59933d9cab7b743 (patch)
tree695b65f4c06fcfd153aae3bab4379d41911a9921 /Doc
parent96f802a9994dc5fdea07715c83c741fabcc5011a (diff)
downloadcpython-44e4b11dd8ad2d09b71b0ce2f59933d9cab7b743.zip
cpython-44e4b11dd8ad2d09b71b0ce2f59933d9cab7b743.tar.gz
cpython-44e4b11dd8ad2d09b71b0ce2f59933d9cab7b743.tar.bz2
Issue #25169: os.getppid() is available on Windows since Python 3.2.
Patch by Bar Harel.
Diffstat (limited to 'Doc')
-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 93f59cd..cd680c5 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):