summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-08-03 14:47:04 +0000
committerJoshua Colp <jcolp@digium.com>2016-08-03 09:49:45 -0500
commit90b30b21ac34f759dbe04fbb21fcdbbd1b645d21 (patch)
tree2de98fd74b426bb36bb5f4e7a969156d26ea40e0 /contrib
parent8878cedc0a7f004ab9fe5c3c94396df2f9a18e39 (diff)
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
Diffstat (limited to 'contrib')
-rw-r--r--contrib/scripts/sip_to_pjsip/astconfigparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/sip_to_pjsip/astconfigparser.py b/contrib/scripts/sip_to_pjsip/astconfigparser.py
index a6d88c7b7..dc79e8032 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 = ""