diff --git a/.travis.yml b/.travis.yml index 17dbe4698..37d34f314 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,8 @@ jobs: dist: trusty - python: 3.6 dist: trusty - - python: 3.8 - dist: xenial + - python: 3.9 + dist: bionic sudo: false git: depth: 1 diff --git a/lib/parse/payloads.py b/lib/parse/payloads.py index 19caab070..f37f7d915 100644 --- a/lib/parse/payloads.py +++ b/lib/parse/payloads.py @@ -41,7 +41,7 @@ def cleanupVals(text, tag): return text def parseXmlNode(node): - for element in node.getiterator("boundary"): + for element in node.findall("boundary"): boundary = AttribDict() for child in element.getchildren(): @@ -53,7 +53,7 @@ def parseXmlNode(node): conf.boundaries.append(boundary) - for element in node.getiterator("test"): + for element in node.findall("test"): test = AttribDict() for child in element.getchildren():