stm: Open header file in text mode (in make-pins).

This commit is contained in:
Damien George 2014-02-26 16:30:33 +00:00
parent 43122c320b
commit f8a4fbbb79

View File

@ -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)