changeset 8695 | 358d8bed9626 |
parent 7014 | 7e3e80f4179a |
child 8937 | 8a1809c9a043 |
--- a/devtools/htmlparser.py Thu Feb 14 15:39:23 2013 +0100 +++ b/devtools/htmlparser.py Thu Feb 14 15:38:25 2013 +0100 @@ -37,7 +37,7 @@ try: data = self.preprocess_data(data) return PageInfo(data, etree.fromstring(data, self.parser)) - except etree.XMLSyntaxError, exc: + except etree.XMLSyntaxError as exc: def save_in(fname=''): file(fname, 'w').write(data) new_exc = AssertionError(u'invalid xml %s' % exc)