[compiler-rt] r334902 - [fuzzer] Python 3 print fixes

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 17 02:11:56 PDT 2018


Author: vitalybuka
Date: Sun Jun 17 02:11:56 2018
New Revision: 334902

URL: http://llvm.org/viewvc/llvm-project?rev=334902&view=rev
Log:
[fuzzer] Python 3 print fixes

Modified:
    compiler-rt/trunk/lib/fuzzer/scripts/collect_data_flow.py
    compiler-rt/trunk/lib/fuzzer/scripts/merge_data_flow.py

Modified: compiler-rt/trunk/lib/fuzzer/scripts/collect_data_flow.py
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/scripts/collect_data_flow.py?rev=334902&r1=334901&r2=334902&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/scripts/collect_data_flow.py (original)
+++ compiler-rt/trunk/lib/fuzzer/scripts/collect_data_flow.py Sun Jun 17 02:11:56 2018
@@ -29,12 +29,12 @@ import shutil
 tmpdir = ""
 
 def cleanup(d):
-  print("removing: ", d)
+  print("removing: %s" % d)
   shutil.rmtree(d)
 
 def collect_dataflow_for_corpus(self, exe, corpus_dir, output_dir):
-  print "Collecting dataflow for corpus:", corpus_dir, \
-    "output_dir:", output_dir
+  print("Collecting dataflow for corpus: %s output_dir: %s" % (corpus_dir,
+                                                               output_dir))
   assert not os.path.exists(output_dir)
   os.mkdir(output_dir)
   for root, dirs, files in os.walk(corpus_dir):

Modified: compiler-rt/trunk/lib/fuzzer/scripts/merge_data_flow.py
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/scripts/merge_data_flow.py?rev=334902&r1=334901&r2=334902&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/scripts/merge_data_flow.py (original)
+++ compiler-rt/trunk/lib/fuzzer/scripts/merge_data_flow.py Sun Jun 17 02:11:56 2018
@@ -30,7 +30,7 @@ def main(argv):
     else:
       D[F] = BV;
   for F in D.keys():
-    print F, D[F]
+    print("%s %s" % (F, D[F]))
 
 if __name__ == '__main__':
   main(sys.argv)




More information about the llvm-commits mailing list