mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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.
|
||||
"""
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue