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:
parent
3cef856dd9
commit
d58c26fec6
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue