Author: fw Date: 2005-09-12 20:15:08 +0000 (Mon, 12 Sep 2005) New Revision: 1941 Modified: lib/python/bugs.py Log: lib/python/bugs.py (CVEFile.matchHeader): Remove matching parenthesis and brackets. Modified: lib/python/bugs.py ==================================================================--- lib/python/bugs.py 2005-09-12 20:14:02 UTC (rev 1940) +++ lib/python/bugs.py 2005-09-12 20:15:08 UTC (rev 1941) @@ -564,10 +564,16 @@ (record_name, description) = match.groups() (cve, desc) = match.groups() if desc: - if desc[0] == ''('' and desc[-1] <> '')'': - self.raiseSyntaxError("missing closing parenthesis") - if desc[0] == ''['' and desc[-1] <> '']'': - self.raiseSyntaxError("missing closing bracket") + if desc[0] == ''('': + if desc[-1] <> '')'': + self.raiseSyntaxError("missing closing parenthesis") + else: + desc = desc[1:-1] + elif desc[0] == ''['': + if desc[-1] <> '']'': + self.raiseSyntaxError("missing closing bracket") + else: + desc = desc[1:-1] return (None, cve, desc) class DSAFile(FileBase):