[FIX] removed report etree warning of len
bzr revid: hda@hda-20090716084658-juwelp201n1xkufd
This commit is contained in:
parent
9148c7fcdf
commit
0eb74074e1
|
@ -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 :
|
||||
|
|
Loading…
Reference in New Issue