summaryrefslogtreecommitdiff
path: root/asyncio/streams.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2014-01-07 16:35:59 -0800
committerGuido van Rossum <guido@python.org>2014-01-07 16:35:59 -0800
commitb16cbca5c76192b058479a66992375da4be37661 (patch)
tree2ab3f18fc0034bbdd772de9538a5fe11828742e1 /asyncio/streams.py
parentfc6b59e004974847dfa28de7d47fe8a9c2d1d2cc (diff)
downloadtrollius-b16cbca5c76192b058479a66992375da4be37661.tar.gz
Fix typo (_writer instead of _reader).
Diffstat (limited to 'asyncio/streams.py')
-rw-r--r--asyncio/streams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/asyncio/streams.py b/asyncio/streams.py
index 93a21d1..13828f2 100644
--- a/asyncio/streams.py
+++ b/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._exception._exception
if self._transport._conn_lost: # Uses private variable.
raise ConnectionResetError('Connection lost')
if not self._protocol._paused: