summaryrefslogtreecommitdiff
path: root/src/xhtml.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-04-19 23:55:54 +0200
committermathieui <mathieui@mathieui.net>2013-04-19 23:55:54 +0200
commit62787af60728b4f0f7f30c93cdda102b20dc50cf (patch)
treeb03f12ea3fb4238e138d8ce42d7b3dbdfce5170c /src/xhtml.py
parent93cdac01ae103d544dcf8dc8924a647531b37ffc (diff)
downloadpoezio-62787af60728b4f0f7f30c93cdda102b20dc50cf.tar.gz
poezio-62787af60728b4f0f7f30c93cdda102b20dc50cf.tar.bz2
poezio-62787af60728b4f0f7f30c93cdda102b20dc50cf.tar.xz
poezio-62787af60728b4f0f7f30c93cdda102b20dc50cf.zip
Actually use the deprecated method for versions INFERIOR to 3.2
Diffstat (limited to 'src/xhtml.py')
-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':