From 8eae707481e99deb1a7cd82857ffa971b62fb9ec Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 7 Oct 2020 19:45:08 +0100 Subject: [PATCH] make sv_analysys python2 compatible --- openpower/sv_analysis.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openpower/sv_analysis.py b/openpower/sv_analysis.py index aa9168f72..77cfd4e87 100644 --- a/openpower/sv_analysis.py +++ b/openpower/sv_analysis.py @@ -121,7 +121,7 @@ def process_csvs(): primarykeys.sort() print ("# keys") - print () + print ('') print ('[[!table data="""') print (tformat(keycolumns)) # TODO use alternative here which has # 'in' rather than in1, in2, in3 @@ -129,11 +129,11 @@ def process_csvs(): for key in primarykeys: print (tformat(dictkeys[key].values())) print ('"""]]') - print () + print ('') for key in primarykeys: - print ("## ", dformat(dictkeys[key])) - print () + print ("## %s " % dformat(dictkeys[key])) + print ('') print ('[[!table data="""') print (tformat(['CSV', 'opcode', 'asm', 'form'])) rows = bykey[key] @@ -141,7 +141,7 @@ def process_csvs(): for row in rows: print (tformat(row)) print ('"""]]') - print () + print ('') bykey = {} for fname, csv in csvs.items(): -- 2.30.2