summaryrefslogtreecommitdiff
path: root/asyncio/subprocess.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2015-07-20 17:18:59 +0200
committerVictor Stinner <vstinner@redhat.com>2015-07-20 17:36:41 +0200
commit13b71a16ee9d5af4939a7e214e92fa89cb96f6a3 (patch)
treecb9525ce018206804591e7e255c5745a044018c6 /asyncio/subprocess.py
parent9bb67431adc916d9d4b4e23ca257658c980d035d (diff)
downloadtrollius-git-closing.tar.gz
Add closing read-only property to transportsclosing
* Disallow write() on closing transports * Disallow aslo calling pause_writing() and resume_writing() on StreamReaderProtocol if the transport is closing
Diffstat (limited to 'asyncio/subprocess.py')
-rw-r--r--asyncio/subprocess.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/asyncio/subprocess.py b/asyncio/subprocess.py
index ead4039..53a8c68 100644
--- a/asyncio/subprocess.py
+++ b/asyncio/subprocess.py
@@ -23,7 +23,6 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
super().__init__(loop=loop)
self._limit = limit
self.stdin = self.stdout = self.stderr = None
- self._transport = None
def __repr__(self):
info = [self.__class__.__name__]
@@ -36,7 +35,7 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
return '<%s>' % ' '.join(info)
def connection_made(self, transport):
- self._transport = transport
+ super().connection_made(transport)
stdout_transport = transport.get_pipe_transport(1)
if stdout_transport is not None: