aboutsummaryrefslogtreecommitdiff
path: root/parsertest.py
diff options
context:
space:
mode:
Diffstat (limited to 'parsertest.py')
-rwxr-xr-xparsertest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/parsertest.py b/parsertest.py
index b1c3a3c..677dda6 100755
--- a/parsertest.py
+++ b/parsertest.py
@@ -398,11 +398,11 @@ class Parser:
s.lineno, s.colno)
value = self.statement()
if self.accept('comma'):
- rest = self.args()
- rest.set_kwarg(s.value, value)
- return rest
- a = ArgumentNode(self.current)
+ a = self.args()
+ else:
+ a = ArgumentNode(self.current)
a.set_kwarg(s.value, value)
+ return a
a = ArgumentNode(self.current)
a.arguments.append(s)
return a