Skip to content

Commit

Permalink
elf2bin.py - Fix syntax warning (#9034)
Browse files Browse the repository at this point in the history
  • Loading branch information
juherr authored Nov 17, 2023
1 parent 5e0ed3a commit 0301465
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 0301465

Please sign in to comment.