mirror of
https://github.com/MiSTer-devel/Distribution_MiSTer.git
synced 2026-05-24 03:03:20 +00:00
Simplifying code a bit more
This commit is contained in:
committed by
GitHub
parent
58208e245e
commit
f1fce83a4b
3
.github/update_distribution.sh
vendored
3
.github/update_distribution.sh
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user