changeset 10588 | fdaa0e4b7eaf |
parent 10066 | 313ce53a7232 |
child 10618 | 3274a1648c7e |
--- a/devtools/htmlparser.py Fri Sep 11 14:27:34 2015 +0200 +++ b/devtools/htmlparser.py Fri Sep 11 14:28:06 2015 +0200 @@ -167,7 +167,7 @@ inpsrc.setByteStream(StringIO(data)) try: self._parser.parse(inpsrc) - except sax.SAXParseException, exc: + except sax.SAXParseException as exc: new_exc = AssertionError(u'invalid document: %s' % exc) new_exc.position = (exc._linenum, exc._colnum) raise new_exc