Georg Brandl added the comment:

open() does not support arbitrary platform flags in its mode argument.  To open 
encoded files and transparently decode them to Unicode strings, please use 
io.open() on Python 2, and pass the correct "encoding" argument.  On Python 3, 
the builtin open() is the same as io.open().

----------
nosy: +georg.brandl
resolution:  -> not a bug
status: open -> closed

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

Reply via email to