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
c02dc8b2
Commit
c02dc8b2
authored
May 30, 2015
by
Paul Sokolovsky
Browse files
tools/make-frozen.py: Open files in binary mode.
parent
a8e7c031
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/make-frozen.py
View file @
c02dc8b2
...
...
@@ -49,8 +49,8 @@ print("const char mp_frozen_content[] = {")
for
f
,
st
in
modules
:
m
=
module_name
(
f
)
print
(
'"%s
\\
0"'
%
m
)
data
=
open
(
sys
.
argv
[
1
]
+
"/"
+
f
).
read
()
data
=
repr
(
data
)[
1
:
-
1
]
data
=
open
(
sys
.
argv
[
1
]
+
"/"
+
f
,
"rb"
).
read
()
data
=
repr
(
data
)[
2
:
-
1
]
data
=
data
.
replace
(
'"'
,
'
\\
"'
)
print
(
'"%s"'
%
data
)
print
(
"};"
)
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