diff --git a/it/Q.py b/it/Q.py index aac715a..8ebad32 100644 --- a/it/Q.py +++ b/it/Q.py @@ -1,8 +1,4 @@ from sys import exit def main(buffer, argv): - if len(argv) > 1: - print("?") - else: - exit(0) - return buffer + return 0 diff --git a/it/exit.py b/it/exit.py new file mode 100644 index 0000000..9080618 --- /dev/null +++ b/it/exit.py @@ -0,0 +1,4 @@ +import sys + +def main(buffer, command): + sys.exit(0) diff --git a/it/q.py b/it/q.py index e73f7ec..f05cd12 100644 --- a/it/q.py +++ b/it/q.py @@ -1,8 +1,8 @@ from sys import exit def main(buffer, argv): - if len(argv) > 1 or not(buffer.saved): + if not(buffer.saved): print("?") else: - exit(0) + buffer = 0 return buffer