From f1fce83a4b4e3290086ec2c6cae138870703e424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Barroso=20Galindo?= Date: Sat, 12 Nov 2022 15:51:37 +0100 Subject: [PATCH] Simplifying code a bit more --- .github/update_distribution.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/update_distribution.sh b/.github/update_distribution.sh index c480a4553..7b43a67b5 100755 --- a/.github/update_distribution.sh +++ b/.github/update_distribution.sh @@ -821,8 +821,7 @@ extract_from_setname_tag() { source <(python3 -c " import xml.etree.ElementTree as ET try: - context = ET.iterparse('${FILE}', events=('start',)) - for _, elem in context: + for _, elem in ET.iterparse('${FILE}', events=('start',)): if elem.tag.lower() == 'setname' and elem.text is not None: print('echo %s' % elem.text.strip()) except ET.ParseError as e: