Message341978
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. |
|
Date |
User |
Action |
Args |
2019-05-09 13:22:23 | natgaertner | set | recipients:
+ natgaertner |
2019-05-09 13:22:23 | natgaertner | set | messageid: <1557408143.65.0.0603138385641.issue36865@roundup.psfhosted.org> |
2019-05-09 13:22:23 | natgaertner | link | issue36865 messages |
2019-05-09 13:22:23 | natgaertner | create | |
|