make sv_analysys python2 compatible
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 7 Oct 2020 18:45:08 +0000 (19:45 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 7 Oct 2020 18:45:08 +0000 (19:45 +0100)
openpower/sv_analysis.py

index aa9168f7280d22c942d11c3b1265ffa3aebb53a3..77cfd4e87241b8a363ad495f841fa397d965743c 100644 (file)
@@ -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():