From 70ab8c460759f70e738f795bb2d1954af1a8f1ec Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Sat, 28 Nov 2009 12:58:09 +0100 Subject: [IMP] removal of usages of the deprecated node.getchildren call, better usage of the attributes & tostring ET APIs, style fixes bzr revid: xmo@tinyerp.com-20091128115809-pk5zqrc3zp8h6pir --- bin/report/render/html2html/html2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/report/render/html2html/html2html.py') diff --git a/bin/report/render/html2html/html2html.py b/bin/report/render/html2html/html2html.py index fa07e9b4726..9f81e26d4f2 100644 --- a/bin/report/render/html2html/html2html.py +++ b/bin/report/render/html2html/html2html.py @@ -75,7 +75,7 @@ class html2html(object): return self._node def url_modify(self,root): - for n in root.getchildren(): + for n in root: if (n.text.find('=0 or n.text.find('<a')>=0) and n.text.find('href')>=0 and n.text.find('style')<=0 : node = (n.tag=='span' and n.getparent().tag=='u') and n.getparent().getparent() or ((n.tag=='span') and n.getparent()) or n style = node.get('color') and "style='color:%s; text-decoration: none;'"%node.get('color') or '' -- cgit v1.2.3