[fuzzer] Python 3 print fixes
authorVitaly Buka <vitalybuka@google.com>
Sun, 17 Jun 2018 09:11:56 +0000 (09:11 +0000)
committerVitaly Buka <vitalybuka@google.com>
Sun, 17 Jun 2018 09:11:56 +0000 (09:11 +0000)
llvm-svn: 334902

compiler-rt/lib/fuzzer/scripts/collect_data_flow.py
compiler-rt/lib/fuzzer/scripts/merge_data_flow.py

index 341b1fe..3edff66 100755 (executable)
@@ -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):
index 26c0c3b..d2f5081 100755 (executable)
@@ -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)