Fix the bug that travis caught

pull/10348/head
Jimmy Brisson 2019-04-09 09:19:41 -05:00
parent 76226b2f24
commit 002a2b17c0
1 changed files with 2 additions and 2 deletions

View File

@ -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'