From 18ced360d301e6f46d91cd7f8be6fb6fe0c3d2f8 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 23 Feb 2022 12:30:03 -0500 Subject: [PATCH] more python 3 compatibility --- tools/python/neb_combine.py | 3 +-- tools/python/neb_final.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/python/neb_combine.py b/tools/python/neb_combine.py index bc1c568397..f94bea4875 100755 --- a/tools/python/neb_combine.py +++ b/tools/python/neb_combine.py @@ -38,8 +38,7 @@ while iarg < narg: else: break if iarg < narg or not outfile or not rfiles: - print "Syntax: neb_combine.py -o outfile -b backfile -r dump1 dump2 ..." - sys.exit() + sys.exit("Syntax: neb_combine.py -o outfile -b backfile -r dump1 dump2 ...") if os.path.exists(outfile): os.remove(outfile) diff --git a/tools/python/neb_final.py b/tools/python/neb_final.py index 4b7ddc40eb..ec9fc2e8f7 100755 --- a/tools/python/neb_final.py +++ b/tools/python/neb_final.py @@ -38,8 +38,7 @@ while iarg < narg: else: break if iarg < narg or not outfile or not rfiles: - print "Syntax: neb_final.py -o outfile -b backfile -r dump1 dump2 ..." - sys.exit() + sys.exit("Syntax: neb_final.py -o outfile -b backfile -r dump1 dump2 ...") if os.path.exists(outfile): os.remove(outfile)