mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fix typo in asyncio/streams.py.
This commit is contained in:
parent
df7c22b25b
commit
6188bd498f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue