diff options
author | Joshua Colp <jcolp@digium.com> | 2016-08-03 14:47:04 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2016-08-03 14:47:04 +0000 |
commit | 9dc8cfabd5fa240a26972dac5c6ce396dadb7d75 (patch) | |
tree | e1e166c09b9f7f6830b956715223c841d580c9c3 /contrib | |
parent | 9db6cdba1a81fa3d5c0845f75c857cda9a3db371 (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.py | 2 |
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 = "" |