mirror of
https://github.com/MiSTer-devel/Scripts_MiSTer.git
synced 2026-05-17 03:04:34 +00:00
Case insensitive MRA parsing. (#73)
This commit is contained in:
committed by
GitHub
parent
8f493866d8
commit
73455739a2
@@ -54,10 +54,14 @@ def output_line_logonly(line):
|
||||
logfile_v.write(line)
|
||||
logfile_v.write('\n')
|
||||
|
||||
def et_parse(mraFile):
|
||||
with open(mraFile, 'r') as f:
|
||||
text = f.read()
|
||||
return ET.fromstring(text.lower())
|
||||
|
||||
def parseMRA(mraFile):
|
||||
working = True
|
||||
tree = ET.parse(mraFile)
|
||||
root = tree.getroot()
|
||||
root = et_parse(mraFile)
|
||||
zipfiles = []
|
||||
info = {}
|
||||
noCRC = True
|
||||
|
||||
Reference in New Issue
Block a user