This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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
Priority: normal Keywords:

Created on 2004-10-17 21:40 by thomaswaldmann, last changed 2022-04-11 14:56 by admin. This issue is now closed.

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) * (Python committer) 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
2022-04-11 14:56:07adminsetgithub: 41038
2004-10-17 21:40:55thomaswaldmanncreate