Mercurial > p > roundup > code
diff roundup/cgi/TAL/HTMLParser.py @ 5265:63868084b8bb
Python 2 and 3 support. Convert Exception to BaseException. TAL and
PageTemplate code.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 04 Sep 2017 21:58:16 -0400 |
| parents | 8c2402a78bb0 |
| children | 12fe83f90f0d |
line wrap: on
line diff
--- a/roundup/cgi/TAL/HTMLParser.py Mon Sep 04 21:56:49 2017 -0400 +++ b/roundup/cgi/TAL/HTMLParser.py Mon Sep 04 21:58:16 2017 -0400 @@ -47,7 +47,7 @@ endtagfind = re.compile('</\s*([a-zA-Z][-.a-zA-Z0-9:_]*)\s*>') -class HTMLParseError(Exception): +class HTMLParseError(BaseException): """Exception raised for all parse errors.""" def __init__(self, msg, position=(None, None)):
