summaryrefslogtreecommitdiffstatshomepage
path: root/examples/accel_i2c.py
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2016-07-22 11:54:26 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-22 21:21:54 +0300
commit9bdb82ef6b3147662ffc6b6435c6bd376c60e19e (patch)
tree71dae7119d4a6e0602b7b89f9c90781486d2e1f6 /examples/accel_i2c.py
parent43473372e6baa105e9facf13925f5eb750112e61 (diff)
downloadmicropython-9bdb82ef6b3147662ffc6b6435c6bd376c60e19e.tar.gz
micropython-9bdb82ef6b3147662ffc6b6435c6bd376c60e19e.zip
mpy-cross: Use binary file translation mode for creating mpy files on windows
This is a fix for https://github.com/micropython/micropython/issues/2209: by default a file created using open() uses text translation mode so writing \n to it will result in the file having \r\n. This is obviously problematic for binary .mpy files, so provide functions for setting the open mode and use binary mode in mpy-cross' main().
Diffstat (limited to 'examples/accel_i2c.py')
0 files changed, 0 insertions, 0 deletions