Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codecs.StreamReader.readlines() broken #41038

Closed
thomaswaldmann mannequin opened this issue Oct 17, 2004 · 2 comments
Closed

codecs.StreamReader.readlines() broken #41038

thomaswaldmann mannequin opened this issue Oct 17, 2004 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@thomaswaldmann
Copy link
Mannequin

thomaswaldmann mannequin commented Oct 17, 2004

BPO 1048865
Nosy @hyeshik

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/hyeshik'
closed_at = <Date 2004-10-17.23:52:33.000>
created_at = <Date 2004-10-17.21:40:55.000>
labels = ['library']
title = 'codecs.StreamReader.readlines() broken'
updated_at = <Date 2004-10-17.23:52:33.000>
user = 'https://bugs.python.org/thomaswaldmann'

bugs.python.org fields:

activity = <Date 2004-10-17.23:52:33.000>
actor = 'hyeshik.chang'
assignee = 'hyeshik.chang'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2004-10-17.21:40:55.000>
creator = 'thomaswaldmann'
dependencies = []
files = []
hgrepos = []
issue_num = 1048865
keywords = []
message_count = 2.0
messages = ['22735', '22736']
nosy_count = 2.0
nosy_names = ['hyeshik.chang', 'thomaswaldmann']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1048865'
versions = ['Python 2.4']

@thomaswaldmann
Copy link
Mannequin Author

thomaswaldmann mannequin commented Oct 17, 2004

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.

@thomaswaldmann thomaswaldmann mannequin closed this as completed Oct 17, 2004
@thomaswaldmann thomaswaldmann mannequin assigned hyeshik Oct 17, 2004
@thomaswaldmann thomaswaldmann mannequin added the stdlib Python modules in the Lib dir label Oct 17, 2004
@thomaswaldmann thomaswaldmann mannequin closed this as completed Oct 17, 2004
@thomaswaldmann thomaswaldmann mannequin assigned hyeshik Oct 17, 2004
@thomaswaldmann thomaswaldmann mannequin added the stdlib Python modules in the Lib dir label Oct 17, 2004
@hyeshik
Copy link
Contributor

hyeshik commented Oct 17, 2004

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

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant