summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/streams.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2014-01-08 01:03:26 (GMT)
committerGuido van Rossum <guido@python.org>2014-01-08 01:03:26 (GMT)
commit6188bd498fd22582e44f323895f0f89dec50f0b8 (patch)
tree1dbf574e9265b46b6d86c74d674694f4ae44e84d /Lib/asyncio/streams.py
parentdf7c22b25b1e7c2138771020d06f61d8d038812c (diff)
downloadcpython-6188bd498fd22582e44f323895f0f89dec50f0b8.zip
cpython-6188bd498fd22582e44f323895f0f89dec50f0b8.tar.gz
cpython-6188bd498fd22582e44f323895f0f89dec50f0b8.tar.bz2
Fix typo in asyncio/streams.py.
Diffstat (limited to 'Lib/asyncio/streams.py')
-rw-r--r--Lib/asyncio/streams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py
index 93a21d1..7eda5f6 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: