classification
Title: codecs.StreamReader.readlines() broken
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: hyeshik.chang Nosy List: hyeshik.chang, thomaswaldmann (2)
Priority: normal Keywords

Created on 2004-10-17 21:40 by thomaswaldmann, last changed 2004-10-17 23:52 by hyeshik.chang.

Messages (2)
msg22735 - (view) Author: Thomas Waldmann (thomaswaldmann) Date: 2004-10-17 21:40
This is a quite obvious one:

$ diff -u codecs.py-orig codecs.py 
--- codecs.py-orig      2004-10-17 23:30:50.000000000 +0200
+++ codecs.py   2004-10-17 23:31:57.000000000 +0200
@@ -334,7 +334,7 @@
 
         """
         data = self.read()
-        return self.splitlines(keepends)
+        return data.splitlines(keepends)
 
     def reset(self):
 
I am using Python 2.4 beta 1.
msg22736 - (view) Author: Hyeshik Chang (hyeshik.chang) Date: 2004-10-17 23:52
Logged In: YES 
user_id=55188

Thanks for the reporting.
Fixed in CVS:
Lib/codecs.py 1.35
Lib/test/test_codecs.py 1.14
History
Date User Action Args
2004-10-17 21:40:55thomaswaldmanncreate