[Python-checkins] cpython: asyncio: Fix _ProactorWritePipeTransport._pipe_closed()

victor.stinner python-checkins at python.org
Thu Feb 20 10:34:13 CET 2014


http://hg.python.org/cpython/rev/c412243b9d61
changeset: 89301:c412243b9d61
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Feb 20 10:33:01 2014 +0100
summary:
 asyncio: Fix _ProactorWritePipeTransport._pipe_closed()
The "exc" variable was not defined, pass a BrokenPipeError exception instead.
files:
 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
--- a/Lib/asyncio/proactor_events.py
+++ b/Lib/asyncio/proactor_events.py
@@ -275,7 +275,7 @@
 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()
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /