mirror of https://github.com/ARMmbed/mbed-os.git
Fix the bug that travis caught
parent
76226b2f24
commit
002a2b17c0
|
@ -131,9 +131,9 @@ class _GccParser(_Parser):
|
|||
return value - A section name, if a new section was found, None
|
||||
otherwise
|
||||
"""
|
||||
line = line.strip()
|
||||
line_s = line.strip()
|
||||
for i in self.ALL_SECTIONS:
|
||||
if line.startswith(i):
|
||||
if line_s.startswith(i):
|
||||
return i
|
||||
if line.startswith('.'):
|
||||
return 'unknown'
|
||||
|
|
Loading…
Reference in New Issue