[Python-checkins] cpython (merge 3.4 -> 3.5): Issue #25169: os.getppid() is available on Windows since Python 3.2.
berker.peksag
python-checkins at python.org
Mon Sep 21 05:13:32 CEST 2015
https://hg.python.org/cpython/rev/c6ccef432dc2
changeset: 98109:c6ccef432dc2
branch: 3.5
parent: 98106:1f602d6046d0
parent: 98108:60b0bc23c69e
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Sep 21 06:13:14 2015 +0300
summary:
Issue #25169: os.getppid() is available on Windows since Python 3.2.
Patch by Bar Harel.
files:
Doc/library/multiprocessing.rst | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -65,8 +65,7 @@
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):
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list