summaryrefslogtreecommitdiffstats
path: root/Lib/codecs.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-05-01 16:17:32 (GMT)
committerGuido van Rossum <guido@python.org>2000-05-01 16:17:32 (GMT)
commitd58c26fec6a8e3e33b8337c5e002c28f6f26e42d (patch)
treed8c412f5d5595271aa970df55142bef80a65f9ea /Lib/codecs.py
parent3cef856dd9db9e998d4fa3395b466f2ed42f7fc9 (diff)
downloadcpython-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.
Diffstat (limited to 'Lib/codecs.py')
-rw-r--r--Lib/codecs.py4
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)