mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix StreamReader.__repr__
This commit is contained in:
parent
85976b14dd
commit
d94c1b92ed
2 changed files with 43 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue