[fuzzer] Python 3 print fixes

llvm-svn: 334902
This commit is contained in:
Vitaly Buka 2018-06-17 09:11:56 +00:00
parent b213a345e1
commit 4d6b33c510
2 changed files with 4 additions and 4 deletions

View File

@ -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):

View File

@ -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)