summaryrefslogtreecommitdiff
path: root/asyncio/streams.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2014-01-07 17:02:15 -0800
committerGuido van Rossum <guido@python.org>2014-01-07 17:02:15 -0800
commit23881a197b5dec1166a4f6c47d0983a257817c41 (patch)
treea97c4ccd3c7eda6928e8c71773555986cada06aa /asyncio/streams.py
parentb16cbca5c76192b058479a66992375da4be37661 (diff)
downloadtrollius-23881a197b5dec1166a4f6c47d0983a257817c41.tar.gz
Fix the fix I just committed. :-(
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 13828f2..7eda5f6 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._exception._exception
+ raise self._reader._exception
if self._transport._conn_lost: # Uses private variable.
raise ConnectionResetError('Connection lost')
if not self._protocol._paused: