From f8a4fbbb79e0145886ad29ad7bd20f3241a09f9d Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 26 Feb 2014 16:30:33 +0000 Subject: [PATCH] stm: Open header file in text mode (in make-pins). --- stm/boards/make-pins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)