mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Update for new grammar
This commit is contained in:
parent
623acf646e
commit
4b194fabdf
1 changed files with 4 additions and 4 deletions
|
@ -1326,7 +1326,7 @@ validate_gen_for(node *tree)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* list_if: 'if' test [list_iter]
|
/* list_if: 'if' old_test [list_iter]
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
validate_list_if(node *tree)
|
validate_list_if(node *tree)
|
||||||
|
@ -1341,12 +1341,12 @@ validate_list_if(node *tree)
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
res = (validate_name(CHILD(tree, 0), "if")
|
res = (validate_name(CHILD(tree, 0), "if")
|
||||||
&& validate_test(CHILD(tree, 1)));
|
&& validate_old_test(CHILD(tree, 1)));
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* gen_if: 'if' test [gen_iter]
|
/* gen_if: 'if' old_test [gen_iter]
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
validate_gen_if(node *tree)
|
validate_gen_if(node *tree)
|
||||||
|
@ -1361,7 +1361,7 @@ validate_gen_if(node *tree)
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
res = (validate_name(CHILD(tree, 0), "if")
|
res = (validate_name(CHILD(tree, 0), "if")
|
||||||
&& validate_test(CHILD(tree, 1)));
|
&& validate_old_test(CHILD(tree, 1)));
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue