diff options
author | Guido van Rossum <guido@python.org> | 2000-05-01 16:17:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-05-01 16:17:32 (GMT) |
commit | d58c26fec6a8e3e33b8337c5e002c28f6f26e42d (patch) | |
tree | d8c412f5d5595271aa970df55142bef80a65f9ea | |
parent | 3cef856dd9db9e998d4fa3395b466f2ed42f7fc9 (diff) | |
download | cpython-d58c26fec6a8e3e33b8337c5e002c28f6f26e42d.zip cpython-d58c26fec6a8e3e33b8337c5e002c28f6f26e42d.tar.gz cpython-d58c26fec6a8e3e33b8337c5e002c28f6f26e42d.tar.bz2 |
Marc-Andre Lemburg:
The two methods .readline() and .readlines() in StreamReaderWriter
didn't define the self argument. Found by Tom Emerson.
-rw-r--r-- | Lib/codecs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py index fff8ed7..1a71fab 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py @@ -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) |