Commit 4a2d1065 authored by Berker Peksag's avatar Berker Peksag

Issue #25169: os.getppid() is available on Windows since Python 3.2.

Patch by Bar Harel.
parent 6da711a1
...@@ -65,7 +65,6 @@ To show the individual process IDs involved, here is an expanded example:: ...@@ -65,7 +65,6 @@ To show the individual process IDs involved, here is an expanded example::
def info(title): def info(title):
print(title) print(title)
print('module name:', __name__) 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()) print('process id:', os.getpid())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment