From 2ab29ac0704cbff3f114301fb37105aea49101f1 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Tue, 16 Nov 2010 15:14:35 +0100 Subject: [PATCH] implement tostring for html5lib parser --- weboob/tools/parsers/html5libparser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/weboob/tools/parsers/html5libparser.py b/weboob/tools/parsers/html5libparser.py index 400c0151..4bf73de4 100644 --- a/weboob/tools/parsers/html5libparser.py +++ b/weboob/tools/parsers/html5libparser.py @@ -47,6 +47,5 @@ class Html5libParser(HTMLParser, IParser): def parse(self, data, encoding): return HTMLParser.parse(self, data, encoding=encoding) - def tostring(self, elem): - # TODO - raise NotImplementedError() + def tostring(self, element): + return element.toxml()