Author eric.araujo
Recipients belopolsky, eric.araujo, pdonis, zach.ware
Date 2020-02-13.01:25:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581557134.1.0.590525129364.issue1812@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2020-02-13 01:25:34eric.araujosetrecipients: + eric.araujo, belopolsky, pdonis, zach.ware
2020-02-13 01:25:34eric.araujosetmessageid: <1581557134.1.0.590525129364.issue1812@roundup.psfhosted.org>
2020-02-13 01:25:34eric.araujolinkissue1812 messages
2020-02-13 01:25:33eric.araujocreate