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

larry.hastings python-checkins at python.org
Mon Mar 17 07:32:29 CET 2014


http://hg.python.org/cpython/rev/2d1bb330a4d2
changeset:   89747:2d1bb330a4d2
branch:      3.4
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