diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-29 05:53:33 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-29 05:53:33 (GMT) |
commit | 6309f2d2828eebc96b47927894c0aacb2aff5d1c (patch) | |
tree | 30faedae4e22b7ac2c7489bf430c9d7262b9c627 /Modules/parsermodule.c | |
parent | c082cb72a58bd4d6beb6c34d55c653b810776274 (diff) | |
download | cpython-6309f2d2828eebc96b47927894c0aacb2aff5d1c.zip cpython-6309f2d2828eebc96b47927894c0aacb2aff5d1c.tar.gz cpython-6309f2d2828eebc96b47927894c0aacb2aff5d1c.tar.bz2 |
Get parsermodule working again after adding set literals
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r-- | Modules/parsermodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 3b94ca5..904b7dd 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -860,7 +860,7 @@ VALIDATER(term); VALIDATER(factor); VALIDATER(atom); VALIDATER(lambdef); VALIDATER(trailer); VALIDATER(subscript); VALIDATER(subscriptlist); VALIDATER(sliceop); -VALIDATER(exprlist); VALIDATER(dictmaker); +VALIDATER(exprlist); VALIDATER(dictsetmaker); VALIDATER(arglist); VALIDATER(argument); VALIDATER(listmaker); VALIDATER(yield_stmt); VALIDATER(testlist1); VALIDATER(gen_for); @@ -2402,7 +2402,7 @@ validate_atom(node *tree) && validate_ntype(CHILD(tree, nch - 1), RBRACE)); if (res && (nch == 3)) - res = validate_dictmaker(CHILD(tree, 1)); + res = validate_dictsetmaker(CHILD(tree, 1)); break; case NAME: case NUMBER: @@ -2838,10 +2838,10 @@ validate_exprlist(node *tree) static int -validate_dictmaker(node *tree) +validate_dictsetmaker(node *tree) { int nch = NCH(tree); - int res = (validate_ntype(tree, dictmaker) + int res = (validate_ntype(tree, dictsetmaker) && (nch >= 3) && validate_test(CHILD(tree, 0)) && validate_colon(CHILD(tree, 1)) |