summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xhtml.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xhtml.py b/src/xhtml.py
index 23de8a32..cae3e8f4 100644
--- a/src/xhtml.py
+++ b/src/xhtml.py
@@ -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':