]> granicus.if.org Git - python/commitdiff
Fix typo in asyncio/streams.py.
authorGuido van Rossum <guido@python.org>
Wed, 8 Jan 2014 01:03:26 +0000 (17:03 -0800)
committerGuido van Rossum <guido@python.org>
Wed, 8 Jan 2014 01:03:26 +0000 (17:03 -0800)
Lib/asyncio/streams.py

index 93a21d1af736b9328cf0ab2369dff2f2f5faaf48..7eda5f663251de8b8b51b2758a44f1f8c16fd058 100644 (file)
@@ -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: