Actually use the deprecated method for versions INFERIOR to 3.2

This commit is contained in:
mathieui 2013-04-19 23:55:54 +02:00
parent 93cdac01ae
commit 62787af607

View file

@ -288,10 +288,10 @@ def xhtml_to_poezio_colors(xml):
builder = [] builder = []
if version_info[1] == 2: if version_info[1] < 2: #deprecated
elems = xml.iter()
else:
elems = xml.getiterator() elems = xml.getiterator()
else:
elems = xml.iter()
for elem in elems: for elem in elems:
if elem.tag == '{http://www.w3.org/1999/xhtml}a': if elem.tag == '{http://www.w3.org/1999/xhtml}a':