Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f8a4fbbb
Commit
f8a4fbbb
authored
Feb 26, 2014
by
Damien George
Browse files
stm: Open header file in text mode (in make-pins).
parent
43122c32
Changes
1
Hide whitespace changes
Inline
Side-by-side
stm/boards/make-pins.py
View file @
f8a4fbbb
...
...
@@ -199,7 +199,7 @@ class Pins(object):
self
.
print_named
(
'board'
,
self
.
board_pins
)
def
print_header
(
self
,
hdr_filename
):
with
open
(
hdr_filename
,
'w
b
'
)
as
hdr_file
:
with
open
(
hdr_filename
,
'w
t
'
)
as
hdr_file
:
for
pin
in
self
.
pins
:
if
pin
.
board_name
:
pin
.
print_header
(
hdr_file
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment