diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-08-01 15:05:04 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-08-01 15:05:04 -0500 |
commit | b8fb794e530e71840e7b54e657fd1c2694541770 (patch) | |
tree | 4ec5ac1e692e279911db6bc8c5625edd83ffe2ed | |
parent | 948a9b615ff9bb6c9233e3efdf94f9224c605c98 (diff) | |
parent | 7f9369c1b63513ea3c8c4971a287ed4f9c369612 (diff) |
Merge "astconfigparser: Handle case where line is simply a comment." into 13
-rw-r--r-- | contrib/scripts/sip_to_pjsip/astconfigparser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/scripts/sip_to_pjsip/astconfigparser.py b/contrib/scripts/sip_to_pjsip/astconfigparser.py index 46f4fb484..a6d88c7b7 100644 --- a/contrib/scripts/sip_to_pjsip/astconfigparser.py +++ b/contrib/scripts/sip_to_pjsip/astconfigparser.py @@ -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 |