Fix typo in asyncio/streams.py.

This commit is contained in:
Guido van Rossum 2014-01-07 17:03:26 -08:00
parent df7c22b25b
commit 6188bd498f
1 changed files with 1 additions and 1 deletions

View File

@ -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: