From 0eb74074e166d74be45a14750dd61755509bcdc4 Mon Sep 17 00:00:00 2001 From: NCH <> Date: Thu, 16 Jul 2009 14:16:58 +0530 Subject: [PATCH] [FIX] removed report etree warning of len bzr revid: hda@hda-20090716084658-juwelp201n1xkufd --- bin/report/report_sxw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/report/report_sxw.py b/bin/report/report_sxw.py index a4fe32a94a0..cc39269b44b 100644 --- a/bin/report/report_sxw.py +++ b/bin/report/report_sxw.py @@ -305,7 +305,7 @@ class rml_parse(object): head_dom = etree.XML(rml_head) for tag in head_dom.getchildren(): found = rml_dom.find('.//'+tag.tag) - if found and len(found): + if found is not None and len(found): if tag.get('position'): found.append(tag) else :