Message341978
| 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: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 |
|