From 60a2d74f2b5145ad7cb1452c33dce7c36499d5d6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 28 Feb 2020 14:08:43 +0100 Subject: [PATCH] Fixes #4126 --- .travis.yml | 4 ++-- lib/parse/payloads.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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():