[FIX] removed report etree warning of len

bzr revid: hda@hda-20090716084658-juwelp201n1xkufd
This commit is contained in:
NCH 2009-07-16 14:16:58 +05:30 committed by husen daudi
parent 9148c7fcdf
commit 0eb74074e1
1 changed files with 1 additions and 1 deletions

View File

@ -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 :