diff options
author | mathieui <mathieui@mathieui.net> | 2013-04-19 23:55:54 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-04-19 23:55:54 +0200 |
commit | 62787af60728b4f0f7f30c93cdda102b20dc50cf (patch) | |
tree | b03f12ea3fb4238e138d8ce42d7b3dbdfce5170c /src/xhtml.py | |
parent | 93cdac01ae103d544dcf8dc8924a647531b37ffc (diff) | |
download | poezio-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.py | 6 |
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': |