summaryrefslogtreecommitdiff
path: root/py/objobject.c
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2017-08-14 12:01:38 +0200
committerDamien George <damien.p.george@gmail.com>2019-09-18 22:15:48 +1000
commitbc86c6252ab1b9a9ee47a44d7ccc9e1a9d74f207 (patch)
tree8fb9f6b9041b807be384d7bae7ee9368a572c433 /py/objobject.c
parent22131a673856a5c9f5a50bda0bf6fb0a69c706b6 (diff)
windows: Default to binary mode for files.
If this is not set it might default to calls to open() to use text mode which is usually not wanted, and even wrong and leading to incorrect results when loading binary .mpy files. This also means that text files written and read will not have line-ending translation from \n to \r\n and vice-versa anymore. This shouldn't be much of a problem though since most tools dealing with text files adapt automatically to any of the 2 formats.
Diffstat (limited to 'py/objobject.c')
0 files changed, 0 insertions, 0 deletions