diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-08-01 15:05:05 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-08-01 15:05:05 -0500 |
commit | de7e9fe95b7052b8c8ee8a669c087901eab867a9 (patch) | |
tree | c42ceef87f0faee5645f7eef5a186138e8516507 | |
parent | 720a4ff6631e173a1cea31c434dca4d2a7002e14 (diff) | |
parent | a7ae48441fe7027ff3d6a92b660cec51f9fe4030 (diff) |
Merge "astconfigparser: Handle case where line is simply a comment."
-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 |