From d58c26fec6a8e3e33b8337c5e002c28f6f26e42d Mon Sep 17 00:00:00 2001
From: Guido van Rossum <guido@python.org>
Date: Mon, 1 May 2000 16:17:32 +0000
Subject: Marc-Andre Lemburg:

The two methods .readline() and .readlines() in StreamReaderWriter
didn't define the self argument. Found by Tom Emerson.
---
 Lib/codecs.py | 4 ++--
 1 file 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)
 
-- 
cgit v0.12

