Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Platform-independent core collection
Commits
6abae0c0
Commit
6abae0c0
authored
Jul 24, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tools] fix mem_init_gen to work with Python3
parent
bee232b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mem_init_gen.py
tools/mem_init_gen.py
+1
-1
No files found.
tools/mem_init_gen.py
View file @
6abae0c0
...
...
@@ -73,7 +73,7 @@ with open ( args.in_file, 'rb' ) as fin:
contents
=
fin
.
read
(
)
# byte value to use for padding
pad_val
=
chr
(
args
.
pad
&
0xff
)
pad_val
=
chr
(
args
.
pad
&
0xff
)
.
encode
(
)
# pad/trim if necessary to get to args.depth
if
args
.
depth
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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