From 319c1cd45fc68f9e9ff0ff2ef863145a3fe30c63 Mon Sep 17 00:00:00 2001 From: Joseph Paul Date: Fri, 4 May 2018 13:47:50 +0200 Subject: [PATCH] Formatting in aggregate.py --- aggregate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aggregate.py b/aggregate.py index 649ef8b..a851ce8 100755 --- a/aggregate.py +++ b/aggregate.py @@ -40,8 +40,8 @@ def main(args): def aggregate(entry): """Aggregate urls of sitemaps from one entry xml sitemap""" file = urlopen(entry, context=ssl_context) - tree = ElementTree.parse(file) + for sitemap in tree.getroot().findall(TAGS['SITEMAP']): location = sitemap.find(TAGS['LOCATION']) if location is not None: