mirror of
https://github.com/MiSTer-devel/Distribution_MiSTer.git
synced 2026-04-19 03:04:16 +00:00
Simplifying code a bit
This commit is contained in:
committed by
GitHub
parent
286d8edbdd
commit
58208e245e
5
.github/update_distribution.sh
vendored
5
.github/update_distribution.sh
vendored
@@ -823,10 +823,7 @@ import xml.etree.ElementTree as ET
|
||||
try:
|
||||
context = ET.iterparse('${FILE}', events=('start',))
|
||||
for _, elem in context:
|
||||
elem_tag = elem.tag.lower()
|
||||
if elem_tag == 'setname':
|
||||
if elem.text is None:
|
||||
continue
|
||||
if elem.tag.lower() == 'setname' and elem.text is not None:
|
||||
print('echo %s' % elem.text.strip())
|
||||
except ET.ParseError as e:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user