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.

Title: Use universal newlines mode for setup.cfg
Type: behavior Stage: resolved
Components: Distutils2 Versions: Python 3.3, 3rd party
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: tarek Nosy List: alexis, eric.araujo, tarek
Priority: normal Keywords: easy

Created on 2011-09-05 16:05 by eric.araujo, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (1)
msg143539 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-09-05 16:05
We need tests to make sure that setup.cfg files using CRLF or CR as newline character work.  We could require that people use LF in the spec, but I don’t think it’s worth it, as it’s simple enough to support all newlines whereas Windows users can’t always use LF easily.

For packaging in 3.3, opening the file in text mode gives us universal newlines for free, so the code is good but we need tests.  For distutils2 in 2.x, we need to pass 'rU' as open flags.
Date User Action Args
2022-04-11 14:57:21adminsetgithub: 57109
2014-03-12 10:39:57eric.araujosetstatus: open -> closed
resolution: out of date
stage: needs patch -> resolved
2011-09-05 16:05:18eric.araujocreate