From: Guido van Rossum Date: Wed, 8 Jan 2014 01:03:26 +0000 (-0800) Subject: Fix typo in asyncio/streams.py. X-Git-Tag: v3.4.0b3~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6188bd498fd22582e44f323895f0f89dec50f0b8;p=python Fix typo in asyncio/streams.py. --- diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py index 93a21d1af7..7eda5f6632 100644 --- a/Lib/asyncio/streams.py +++ b/Lib/asyncio/streams.py @@ -199,7 +199,7 @@ class StreamWriter: drained and the protocol is resumed. """ if self._reader._exception is not None: - raise self._writer._exception + raise self._reader._exception if self._transport._conn_lost: # Uses private variable. raise ConnectionResetError('Connection lost') if not self._protocol._paused: