From 62787af60728b4f0f7f30c93cdda102b20dc50cf Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 19 Apr 2013 23:55:54 +0200 Subject: Actually use the deprecated method for versions INFERIOR to 3.2 --- src/xhtml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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': -- cgit v1.2.3