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.

Author natgaertner
Recipients natgaertner
Date 2019-05-09.13:22:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557408143.65.0.0603138385641.issue36865@roundup.psfhosted.org>
In-reply-to
Content
While looking at https://bugs.python.org/issue5758 I noticed that 'rt' support had been added to gzip and bz2 in 3.3, but FileInput still limited its mode options to 'r', 'rb', 'rU', and 'U'. It seems like 'rt' should be just fine here as well, and would help clarify issue 5758, since 'r' defaults to 'rt' for open(...) but defaults to 'rb' for gzip and bz2.

I wrote up the code and modified the mode unit test to try every allowed mode. I'll attach a PR to this once I have it ready.
History
Date User Action Args
2019-05-09 13:22:23natgaertnersetrecipients: + natgaertner
2019-05-09 13:22:23natgaertnersetmessageid: <1557408143.65.0.0603138385641.issue36865@roundup.psfhosted.org>
2019-05-09 13:22:23natgaertnerlinkissue36865 messages
2019-05-09 13:22:23natgaertnercreate