commit | b79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Mon Feb 03 23:08:14 2014 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Mon Feb 03 23:08:14 2014 +0100 |
tree | 4e8aaa069699ce2854c48a4682418e499faa524f | |
parent | cb306d1b592d03f56630a3551b89b97ab34492e9 [diff] |
asyncio.subprocess: Replace Process.get_subprocess() method with a Process.subprocess read-only property
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 @@ 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):