Message361927
Ah, I got it wrong, get_data itself uses `rb`, not default `r`.
It makes sense given that package data could be any kind of file, not necessarily text. Too bad there isn’t a `get_text(encoding)` method in the loader API!
With Python 3’s rich IO system, isn’t there a quick and correct way to get a text file from a bytes stream? TextIOWrapper? |
|
Date |
User |
Action |
Args |
2020-02-13 01:25:34 | eric.araujo | set | recipients:
+ eric.araujo, belopolsky, pdonis, zach.ware |
2020-02-13 01:25:34 | eric.araujo | set | messageid: <1581557134.1.0.590525129364.issue1812@roundup.psfhosted.org> |
2020-02-13 01:25:34 | eric.araujo | link | issue1812 messages |
2020-02-13 01:25:33 | eric.araujo | create | |
|