diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-02-03 22:08:14 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-02-03 22:08:14 (GMT) |
commit | b79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5 (patch) | |
tree | 4e8aaa069699ce2854c48a4682418e499faa524f /Lib/asyncio/subprocess.py | |
parent | cb306d1b592d03f56630a3551b89b97ab34492e9 (diff) | |
download | cpython-b79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5.zip cpython-b79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5.tar.gz cpython-b79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5.tar.bz2 |
asyncio.subprocess: Replace Process.get_subprocess() method with a
Process.subprocess read-only property
Diffstat (limited to 'Lib/asyncio/subprocess.py')
-rw-r--r-- | Lib/asyncio/subprocess.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncio/subprocess.py b/Lib/asyncio/subprocess.py index 4312d44..3047894 100644 --- a/Lib/asyncio/subprocess.py +++ b/Lib/asyncio/subprocess.py @@ -106,7 +106,8 @@ class Process: yield from waiter return waiter.result() - def get_subprocess(self): + @property + def subprocess(self): return self._transport.get_extra_info('subprocess') def _check_alive(self): |