Skip to content

Commit

Permalink
the error thing is useless
Browse files Browse the repository at this point in the history
  • Loading branch information
Touchcreator committed Jul 11, 2023
1 parent 32e5a82 commit 81ea0fd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tapl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

filename = sys.argv[1]
file = open(filename, 'r')
ignore = [" ", "\n", "\t"]
contents = file.read()

q = deque()
Expand Down Expand Up @@ -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

0 comments on commit 81ea0fd

Please sign in to comment.