summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-03 22:08:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-03 22:08:14 (GMT)
commitb79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5 (patch)
tree4e8aaa069699ce2854c48a4682418e499faa524f /Lib/asyncio
parentcb306d1b592d03f56630a3551b89b97ab34492e9 (diff)
downloadcpython-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')
-rw-r--r--Lib/asyncio/subprocess.py3
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):