diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-09 20:35:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-09 20:35:03 (GMT) |
commit | 6a825a831412605bda4773f507db5c3e36cd2c03 (patch) | |
tree | 22ff62eceb47230f6b2bbac2ec07519fb5b2ac49 | |
parent | 3cd440df222776adca31d4a3003776edffa22317 (diff) | |
parent | 587feb19e8f9c967e6f88ecd85eca962a57d5410 (diff) | |
download | cpython-6a825a831412605bda4773f507db5c3e36cd2c03.zip cpython-6a825a831412605bda4773f507db5c3e36cd2c03.tar.gz cpython-6a825a831412605bda4773f507db5c3e36cd2c03.tar.bz2 |
Merge 3.4 (asyncio, selectors)
-rw-r--r-- | Lib/asyncio/base_subprocess.py | 1 | ||||
-rw-r--r-- | Lib/asyncio/futures.py | 2 | ||||
-rw-r--r-- | Lib/selectors.py | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py index 81698b0..afc434d 100644 --- a/Lib/asyncio/base_subprocess.py +++ b/Lib/asyncio/base_subprocess.py @@ -182,6 +182,7 @@ class WriteSubprocessPipeProto(protocols.BaseProtocol): def connection_lost(self, exc): self.disconnected = True self.proc._pipe_connection_lost(self.fd, exc) + self.proc = None def pause_writing(self): self.proc._protocol.pause_writing() diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py index e0e12f0..19212a9 100644 --- a/Lib/asyncio/futures.py +++ b/Lib/asyncio/futures.py @@ -405,5 +405,5 @@ def wrap_future(fut, *, loop=None): new_future.add_done_callback(_check_cancel_other) fut.add_done_callback( lambda future: loop.call_soon_threadsafe( - new_future._copy_state, fut)) + new_future._copy_state, future)) return new_future diff --git a/Lib/selectors.py b/Lib/selectors.py index 598845d4..5850dea 100644 --- a/Lib/selectors.py +++ b/Lib/selectors.py @@ -256,6 +256,7 @@ class _BaseSelectorImpl(BaseSelector): def close(self): self._fd_to_key.clear() + self._map = None def get_map(self): return self._map |