From 31ab99f7c854d654bf05abd50e3300714df381f3 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 31 Jan 2022 16:39:02 +0100 Subject: contrib: update analyze_brprob_* scripts. contrib/ChangeLog: * analyze_brprob.py: Support more formatted predict.def file. * analyze_brprob_spec.py: Improve output and documentation. --- contrib/analyze_brprob.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'contrib/analyze_brprob.py') diff --git a/contrib/analyze_brprob.py b/contrib/analyze_brprob.py index de5f474..debc9a6 100755 --- a/contrib/analyze_brprob.py +++ b/contrib/analyze_brprob.py @@ -101,8 +101,11 @@ class PredictDefFile: p = None modified_lines = [] - for l in lines: + for i, l in enumerate(lines): if l.startswith('DEF_PREDICTOR'): + next_line = lines[i + 1] + if l.endswith(','): + l += next_line m = re.match('.*"(.*)".*', l) p = m.group(1) elif l == '': -- cgit v1.1