devtools/htmlparser.py
changeset 10066 313ce53a7232
parent 10006 8391bf718485
child 10588 fdaa0e4b7eaf
--- a/devtools/htmlparser.py	Fri Oct 17 12:14:58 2014 +0200
+++ b/devtools/htmlparser.py	Tue Aug 19 12:04:23 2014 +0200
@@ -88,8 +88,6 @@
         try:
             return etree.fromstring(pdata, self.parser)
         except etree.XMLSyntaxError as exc:
-            def save_in(fname=''):
-                file(fname, 'w').write(data)
             new_exc = AssertionError(u'invalid document: %s' % exc)
             new_exc.position = exc.position
             raise new_exc