Éric Araujo <mer...@netwok.org> added the comment:

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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue1812>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to