From 10d30ae5e78d29bb6a6bf91fa05805bd9cd46103 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Thu, 25 Oct 2018 15:02:04 -0400 Subject: [PATCH] unify system exit --- comment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comment.py b/comment.py index 83bc8f8..bf2ac6a 100755 --- a/comment.py +++ b/comment.py @@ -66,8 +66,8 @@ if __name__ == '__main__': try: text = input("comment# ") except KeyboardInterrupt: - print('exit') - sys.exit(0) + text = 'exit' + print(text) if text == 'exit': sys.exit(0) else: