Commit 68757cff authored by Guido van Rossum's avatar Guido van Rossum

Fix typo in asyncio/streams.py.

parent 134fdecb
...@@ -199,7 +199,7 @@ class StreamWriter: ...@@ -199,7 +199,7 @@ class StreamWriter:
drained and the protocol is resumed. drained and the protocol is resumed.
""" """
if self._reader._exception is not None: if self._reader._exception is not None:
raise self._writer._exception raise self._reader._exception
if self._transport._conn_lost: # Uses private variable. if self._transport._conn_lost: # Uses private variable.
raise ConnectionResetError('Connection lost') raise ConnectionResetError('Connection lost')
if not self._protocol._paused: if not self._protocol._paused:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment