astconfigparser: Really handle case where line is simply a comment.

The regular expression would match causing the code that handled
the line if it was merely a comment to never get executed.

Change-Id: I3e4022481037ebcba9905587fe8c764b4ce21819
This commit is contained in:
Joshua Colp
2016-08-03 14:47:04 +00:00
parent 8878cedc0a
commit 90b30b21ac

View File

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