mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
elf2bin.py - Fix syntax warning (#9034)
This commit is contained in:
parent
5e0ed3a38b
commit
0301465a3c
@ -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)
|
||||
|
||||
@ -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 ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user