summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2015-09-29 15:36:00 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2015-09-29 15:36:00 (GMT)
commitd94c1b92ed6420044d38b59371fd934b9ca9a79f (patch)
tree71c82c277c8175ad27a8ef228c2a10b8e1283728 /Lib/asyncio
parent85976b14ddb941670ee831ed18b5bc69ca1380ac (diff)
downloadcpython-d94c1b92ed6420044d38b59371fd934b9ca9a79f.zip
cpython-d94c1b92ed6420044d38b59371fd934b9ca9a79f.tar.gz
cpython-d94c1b92ed6420044d38b59371fd934b9ca9a79f.tar.bz2
Fix StreamReader.__repr__
Diffstat (limited to 'Lib/asyncio')
-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 6484c43..bb9fb31 100644
--- a/Lib/asyncio/streams.py
+++ b/Lib/asyncio/streams.py
@@ -324,7 +324,7 @@ class StreamReader:
def __repr__(self):
info = ['StreamReader']
if self._buffer:
- info.append('%d bytes' % len(info))
+ info.append('%d bytes' % len(self._buffer))
if self._eof:
info.append('eof')
if self._limit != _DEFAULT_LIMIT: