From 73455739a2ede69b66e0516c63e1b39ab4d5302e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Barroso=20Galindo?= Date: Tue, 7 Dec 2021 11:00:37 +0100 Subject: [PATCH] Case insensitive MRA parsing. (#73) --- other_authors/mra_rom_check.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/other_authors/mra_rom_check.sh b/other_authors/mra_rom_check.sh index 28da84a..43ddc1f 100644 --- a/other_authors/mra_rom_check.sh +++ b/other_authors/mra_rom_check.sh @@ -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