astconfigparser: Handle case where line is simply a comment.

Change-Id: I2dea5815363f4d787d709228a04f33baee383ef5
This commit is contained in:
Joshua Colp 2016-07-29 06:48:32 -03:00
parent 6131d70aa8
commit a7ae48441f
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ def remove_comment(line, is_comment):
if match:
# the end of where the real string is is where the comment starts
line = line[0:(match.end()-1)]
elif line.startswith(";"):
# if the line is actually a comment just ignore it all
line = ""
return line.replace("\\", "").strip(), False