Marc-Andre Lemburg:

The two methods .readline() and .readlines() in StreamReaderWriter
didn't define the self argument. Found by Tom Emerson.
This commit is contained in:
Guido van Rossum 2000-05-01 16:17:32 +00:00
parent 3cef856dd9
commit d58c26fec6
1 changed files with 2 additions and 2 deletions

View File

@ -324,11 +324,11 @@ class StreamReaderWriter:
return self.reader.read(size)
def readline(size=None):
def readline(self, size=None):
return self.reader.readline(size)
def readlines(sizehint=None):
def readlines(self, sizehint=None):
return self.reader.readlines(sizehint)