From d1f973906a5732f98c7c20bcc0545630992b6306 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 3 Aug 2016 14:47:04 +0000 Subject: [PATCH] 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 --- contrib/scripts/sip_to_pjsip/astconfigparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/scripts/sip_to_pjsip/astconfigparser.py b/contrib/scripts/sip_to_pjsip/astconfigparser.py index a6d88c7b75..dc79e80321 100644 --- a/contrib/scripts/sip_to_pjsip/astconfigparser.py +++ b/contrib/scripts/sip_to_pjsip/astconfigparser.py @@ -203,7 +203,7 @@ 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 line.startswith(";"): # if the line is actually a comment just ignore it all line = "" -- 2.47.2