From c0acdd678d7334815e45c91dd34025e063013c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 25 Mar 2012 15:24:14 +0000 Subject: [PATCH] 5621: add a comment about getiterator if python version > 2.6 svn: r19152 --- po/update_po.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/po/update_po.py b/po/update_po.py index 2af05a4de..a9ab67c44 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -93,6 +93,15 @@ def XMLParse(filename, mark): tree = ElementTree.parse(filename) root = tree.getroot() + + python_v = sys.version_info + + #if python_v[1] != 6: + + # python 2.7 + # iter() is the new name for getiterator; + # in ET 1.3, it is implemented as a generator method, + # but is otherwise identical '''