[Python-checkins] cpython (merge 3.5 -> default): 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/71a6d4c7cd01
changeset: 98110:71a6d4c7cd01
parent: 98107:cc3e23297db7
parent: 98109:c6ccef432dc2
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Sep 21 06:13:36 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