1
0
Fork 0

unify system exit

This commit is contained in:
Kevin Matz 2018-10-25 15:02:04 -04:00
parent f284414383
commit 10d30ae5e7
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ if __name__ == '__main__':
try: try:
text = input("comment# ") text = input("comment# ")
except KeyboardInterrupt: except KeyboardInterrupt:
print('exit') text = 'exit'
sys.exit(0) print(text)
if text == 'exit': if text == 'exit':
sys.exit(0) sys.exit(0)
else: else: