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: