From 81ea0fddab9c45962af151df5d29fcf0266050af Mon Sep 17 00:00:00 2001 From: TouchIsNotAGoodCoder <64277067+Touchcreator@users.noreply.github.com> Date: Mon, 10 Jul 2023 20:03:06 -0400 Subject: [PATCH] the error thing is useless --- tapl.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tapl.py b/tapl.py index b6a03ec..e88b5fc 100644 --- a/tapl.py +++ b/tapl.py @@ -3,7 +3,6 @@ filename = sys.argv[1] file = open(filename, 'r') -ignore = [" ", "\n", "\t"] contents = file.read() q = deque() @@ -50,9 +49,4 @@ q.appendleft(q[1] / q[0]) elif (contents[i] == "t"): q.appendleft(q[int(q[0])]) - else: - if contents[i] not in ignore: - print("Error at character " + str(i) + " " + str(contents[i])) - print("That isn't a command!") - break i+=1 \ No newline at end of file