Skip to content

Commit 53a5e03

Browse files
authored
Merge pull request #429 from rocky/reinstate-pos-args
Reinstate pos_args in CALL_METHOD
2 parents 931abc5 + 7c99564 commit 53a5e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uncompyle6/parsers/parse37base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2016-2017, 2019-2020, 2022 Rocky Bernstein
1+
# Copyright (c) 2016-2017, 2019-2020, 2022-2023 Rocky Bernstein
22
"""
33
Python 3.7 base code. We keep non-custom-generated grammar rules out of this file.
44
"""
@@ -558,7 +558,7 @@ def customize_grammar_rules(self, tokens, customize):
558558
nak = (len(opname_base) - len("CALL_METHOD")) // 3
559559
rule = (
560560
"call ::= expr "
561-
+ ("expr " * args_pos)
561+
+ ("pos_arg " * args_pos)
562562
+ ("kwarg " * args_kw)
563563
+ "expr " * nak
564564
+ opname

0 commit comments

Comments
 (0)