aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2020-12-06 11:47:52 +0100
committerMiroslav Šulc <fordfrog@fordfrog.com>2020-12-15 11:20:59 +0100
commit608db5f55c913e6ad0974ead162b7521e865031e (patch)
treebd063b9d74901f5d27f4b4b5fadd549aabcb7423
parentrelease 0.6.4 (diff)
downloadjavatoolkit-608db5f55c913e6ad0974ead162b7521e865031e.tar.gz
javatoolkit-608db5f55c913e6ad0974ead162b7521e865031e.tar.bz2
javatoolkit-608db5f55c913e6ad0974ead162b7521e865031e.zip
https://bugs.gentoo.org/758716
Bug: https://bugs.gentoo.org/758716 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/javatoolkit/pull/2 Signed-off-by: Miroslav Šulc <fordfrog@fordfrog.com>
-rwxr-xr-xsrc/py/build-xml-rewrite8
1 files 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'