commit:     608db5f55c913e6ad0974ead162b7521e865031e
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sun Dec  6 10:47:52 2020 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Tue Dec 15 10:20:59 2020 +0000
URL:        https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=608db5f5

https://bugs.gentoo.org/758716

Bug: https://bugs.gentoo.org/758716

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/javatoolkit/pull/2
Signed-off-by: Miroslav Šulc <fordfrog <AT> fordfrog.com>

 src/py/build-xml-rewrite | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/py/build-xml-rewrite b/src/py/build-xml-rewrite
index f839615..7fe8abc 100755
--- a/src/py/build-xml-rewrite
+++ b/src/py/build-xml-rewrite
@@ -35,12 +35,12 @@ def main():
         if os.path.getsize(file) == 0 : continue
         tree = et.ElementTree(file=file)
         if gcp or options.encoding:
-            for javac in tree.getiterator('javac'):
+            for javac in tree.iter('javac'):
                 if gcp:
                     javac.attrib['classpath'] = gcp_str
                 if options.encoding:
                     javac.attrib['encoding'] = options.encoding
-                for javadoc in tree.getiterator('javadoc'):
+                for javadoc in tree.iter('javadoc'):
                     if gcp:
                         javadoc.attrib['classpath'] = gcp_str
                         if options.encoding:
@@ -48,9 +48,9 @@ def main():
         for c in changes:
             elems, attr, value = c
             for elem in elems:
-                for e in tree.getiterator(elem):
+                for e in tree.iter(elem):
                     e.attrib[attr] = value
-        for junit in tree.getiterator('junit'):
+        for junit in tree.iter('junit'):
             if gcp:
                 junit.append(gcp_sub)
                 junit.attrib['haltonfailure'] = 'true'

Reply via email to