diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-26 16:30:33 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-26 16:30:33 +0000 |
commit | f8a4fbbb79e0145886ad29ad7bd20f3241a09f9d (patch) | |
tree | bcc180530c7b92a8cabd686a09e2c01fe22a80b1 /stm/boards/make-pins.py | |
parent | 43122c320bce6e03a37fda1d230f5c467338c85c (diff) | |
download | micropython-f8a4fbbb79e0145886ad29ad7bd20f3241a09f9d.tar.gz micropython-f8a4fbbb79e0145886ad29ad7bd20f3241a09f9d.zip |
stm: Open header file in text mode (in make-pins).
Diffstat (limited to 'stm/boards/make-pins.py')
-rwxr-xr-x | stm/boards/make-pins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/boards/make-pins.py b/stm/boards/make-pins.py index b39a2b9ddd..8c1bedbf0c 100755 --- a/stm/boards/make-pins.py +++ b/stm/boards/make-pins.py @@ -199,7 +199,7 @@ class Pins(object): self.print_named('board', self.board_pins) def print_header(self, hdr_filename): - with open(hdr_filename, 'wb') as hdr_file: + with open(hdr_filename, 'wt') as hdr_file: for pin in self.pins: if pin.board_name: pin.print_header(hdr_file) |