Skip to content

elf2bin.py - Fix syntax warning #9034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/elf2bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_elf_entry(elf, path):
lines = io.StringIO(result.stdout)
for line in lines.readlines():
if 'Entry point address' in line:
words = re.split('\s+', line)
words = re.split(r'\s+', line)
entry_point = words[-2]
return int(entry_point, 16)

Expand All @@ -70,7 +70,7 @@ def get_segment_size_addr(elf, segment, path):
lines = io.StringIO(result.stdout)
for line in lines.readlines():
if segment in line:
words = re.split('\s+', line)
words = re.split(r'\s+', line)
size = int(words[3], 16)
addr = int(words[4], 16)
return [ size, addr ]
Expand Down