]> granicus.if.org Git - python/commitdiff
asyncio: Fix _ProactorWritePipeTransport._pipe_closed()
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 20 Feb 2014 09:33:01 +0000 (10:33 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 20 Feb 2014 09:33:01 +0000 (10:33 +0100)
The "exc" variable was not defined, pass a BrokenPipeError exception instead.

Lib/asyncio/proactor_events.py

index f45cd9c680d9a9600f8e4365c83ed02e9d377221..d99e8ce7271f7d0277a901b94063e64e493e4aae 100644 (file)
@@ -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()