Actually use the deprecated method for versions INFERIOR to 3.2
This commit is contained in:
parent
93cdac01ae
commit
62787af607
1 changed files with 3 additions and 3 deletions
|
@ -288,10 +288,10 @@ def xhtml_to_poezio_colors(xml):
|
|||
|
||||
builder = []
|
||||
|
||||
if version_info[1] == 2:
|
||||
elems = xml.iter()
|
||||
else:
|
||||
if version_info[1] < 2: #deprecated
|
||||
elems = xml.getiterator()
|
||||
else:
|
||||
elems = xml.iter()
|
||||
|
||||
for elem in elems:
|
||||
if elem.tag == '{http://www.w3.org/1999/xhtml}a':
|
||||
|
|
Loading…
Reference in a new issue