Address Py2.5 issue
This commit is contained in:
parent
bad3c27486
commit
5e5ab2ffb7
|
@ -53,6 +53,7 @@ class FakeShutdownEvent(object):
|
||||||
# Some global variables we use
|
# Some global variables we use
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
_GLOBAL_DEFAULT_TIMEOUT = object()
|
_GLOBAL_DEFAULT_TIMEOUT = object()
|
||||||
|
PY25PLUS = sys.version_info[:2] >= (2, 5)
|
||||||
PY26PLUS = sys.version_info[:2] >= (2, 6)
|
PY26PLUS = sys.version_info[:2] >= (2, 6)
|
||||||
PY32PLUS = sys.version_info[:2] >= (3, 2)
|
PY32PLUS = sys.version_info[:2] >= (3, 2)
|
||||||
|
|
||||||
|
@ -267,7 +268,7 @@ else:
|
||||||
|
|
||||||
if PY32PLUS:
|
if PY32PLUS:
|
||||||
etree_iter = ET.Element.iter
|
etree_iter = ET.Element.iter
|
||||||
elif PY26PLUS:
|
elif PY25PLUS:
|
||||||
etree_iter = ET_Element.getiterator
|
etree_iter = ET_Element.getiterator
|
||||||
|
|
||||||
if PY26PLUS:
|
if PY26PLUS:
|
||||||
|
|
Loading…
Reference in New Issue