Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6309f2d

Browse files
committed
Get parsermodule working again after adding set literals
1 parent c082cb7 commit 6309f2d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Modules/parsermodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ VALIDATER(term); VALIDATER(factor);
860860
VALIDATER(atom); VALIDATER(lambdef);
861861
VALIDATER(trailer); VALIDATER(subscript);
862862
VALIDATER(subscriptlist); VALIDATER(sliceop);
863-
VALIDATER(exprlist); VALIDATER(dictmaker);
863+
VALIDATER(exprlist); VALIDATER(dictsetmaker);
864864
VALIDATER(arglist); VALIDATER(argument);
865865
VALIDATER(listmaker); VALIDATER(yield_stmt);
866866
VALIDATER(testlist1); VALIDATER(gen_for);
@@ -2402,7 +2402,7 @@ validate_atom(node *tree)
24022402
&& validate_ntype(CHILD(tree, nch - 1), RBRACE));
24032403

24042404
if (res && (nch == 3))
2405-
res = validate_dictmaker(CHILD(tree, 1));
2405+
res = validate_dictsetmaker(CHILD(tree, 1));
24062406
break;
24072407
case NAME:
24082408
case NUMBER:
@@ -2838,10 +2838,10 @@ validate_exprlist(node *tree)
28382838

28392839

28402840
static int
2841-
validate_dictmaker(node *tree)
2841+
validate_dictsetmaker(node *tree)
28422842
{
28432843
int nch = NCH(tree);
2844-
int res = (validate_ntype(tree, dictmaker)
2844+
int res = (validate_ntype(tree, dictsetmaker)
28452845
&& (nch >= 3)
28462846
&& validate_test(CHILD(tree, 0))
28472847
&& validate_colon(CHILD(tree, 1))

0 commit comments

Comments
 (0)