Ethgoin commited on
Commit
02fd9a1
·
verified ·
1 Parent(s): 3f612f7

Update parser.py

Browse files
Files changed (1) hide show
  1. parser.py +1 -1
parser.py CHANGED
@@ -90,7 +90,7 @@ class Parser:
90
  self.match(func_name)
91
  self.match("OPEN_PAREN")
92
  arg = None
93
- if self.current()[0] not in ("CLOSE_PAREN",):
94
  arg = self.expression()
95
  self.match("CLOSE_PAREN")
96
  self.match("SEMICOLON")
 
90
  self.match(func_name)
91
  self.match("OPEN_PAREN")
92
  arg = None
93
+ if self.current()[0] != "CLOSE_PAREN":
94
  arg = self.expression()
95
  self.match("CLOSE_PAREN")
96
  self.match("SEMICOLON")