From 8e5eda14e96c05387d9714086b5f7b90b13fd4df Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 3 Jul 2024 09:50:56 +0200 Subject: [PATCH] Python 3.9+ supporting route_parser --- leaderboard/utils/route_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaderboard/utils/route_parser.py b/leaderboard/utils/route_parser.py index c738d23a..693a1190 100644 --- a/leaderboard/utils/route_parser.py +++ b/leaderboard/utils/route_parser.py @@ -129,7 +129,7 @@ def get_routes_subset(): scenario_config.name = scenario.attrib.get('name') scenario_config.type = scenario.attrib.get('type') - for elem in scenario.getchildren(): + for elem in list(scenario): if elem.tag == 'trigger_point': scenario_config.trigger_points.append(convert_elem_to_transform(elem)) elif elem.tag == 'other_actor':