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: Allow universal line endings in filecmp module
Type: enhancement Stage: resolved
Components: Library (Lib) Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder: filecmp.cmp can not compare two files from different OS with the same content
View: 6306
Assigned To: Nosy List: gjb1002, r.david.murray
Priority: normal Keywords:

Created on 2011-01-17 15:44 by gjb1002, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg126405 - (view) Author: Geoffrey Bache (gjb1002) Date: 2011-01-17 15:44
It would be useful to compare the contents of two files while not caring what platform they were produced on, perhaps a universal_line_endings parameter to e.g. filecmp.cmp and possibly other methods.

At the moment opening the files with "rb" is hardcoded in filecmp.py.

If there is another way to achieve this, please enlighten me...
msg126424 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-01-17 18:17
Duplicate of issue 6306.
History
Date User Action Args
2022-04-11 14:57:11adminsetgithub: 55136
2011-01-17 18:17:09r.david.murraysetstatus: open -> closed

superseder: filecmp.cmp can not compare two files from different OS with the same content

nosy: + r.david.murray
messages: + msg126424
resolution: duplicate
stage: resolved
2011-01-17 15:44:02gjb1002create