diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-02-20 09:33:01 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-02-20 09:33:01 (GMT) |
commit | 2c7203c6f5464e2bcb3d7e11acf714a29a5b0187 (patch) | |
tree | 20922ecb05c3a48e9b758735805a805326b57218 /Lib/asyncio/proactor_events.py | |
parent | cdb476bd438c7befec98913a6f1e770edd2f11a8 (diff) | |
download | cpython-2c7203c6f5464e2bcb3d7e11acf714a29a5b0187.zip cpython-2c7203c6f5464e2bcb3d7e11acf714a29a5b0187.tar.gz cpython-2c7203c6f5464e2bcb3d7e11acf714a29a5b0187.tar.bz2 |
asyncio: Fix _ProactorWritePipeTransport._pipe_closed()
The "exc" variable was not defined, pass a BrokenPipeError exception instead.
Diffstat (limited to 'Lib/asyncio/proactor_events.py')
-rw-r--r-- | Lib/asyncio/proactor_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py index f45cd9c..d99e8ce 100644 --- a/Lib/asyncio/proactor_events.py +++ b/Lib/asyncio/proactor_events.py @@ -275,7 +275,7 @@ class _ProactorWritePipeTransport(_ProactorBaseWritePipeTransport): assert fut is self._read_fut, (fut, self._read_fut) self._read_fut = None if self._write_fut is not None: - self._force_close(exc) + self._force_close(BrokenPipeError()) else: self.close() |