From c2d0c2cbe8895efb89297e6c63d06b3263920825 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Sun, 10 May 2015 11:21:49 +0200 Subject: [PATCH] Use sys.stdout instead of print. --- src/scriptform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scriptform.py b/src/scriptform.py index 3391c01..22766d3 100755 --- a/src/scriptform.py +++ b/src/scriptform.py @@ -1025,7 +1025,7 @@ if __name__ == "__main__": if not plain_pw == getpass.getpass('Repeat password: '): sys.stderr.write("Passwords do not match.\n") sys.exit(1) - print hashlib.sha256(plain_pw).hexdigest() + sys.stdout.write(hashlib.sha256(plain_pw).hexdigest() + '\n') sys.exit(0) else: if not options.action_stop and len(args) < 1: