diff -r 72447be71b48 -r fdaa0e4b7eaf devtools/htmlparser.py --- 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