summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-12 05:24:39 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-12 05:24:39 (GMT)
commit4b194fabdf837b2646bd2ad3a742451882fb0638 (patch)
treefb9f89413062dc1e21702f1eb224bd67089bd7fe /Modules
parent623acf646e3631610bfaaa9ed386f80e28a93e32 (diff)
downloadcpython-4b194fabdf837b2646bd2ad3a742451882fb0638.zip
cpython-4b194fabdf837b2646bd2ad3a742451882fb0638.tar.gz
cpython-4b194fabdf837b2646bd2ad3a742451882fb0638.tar.bz2
Update for new grammar
Diffstat (limited to 'Modules')
-rw-r--r--Modules/parsermodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index 0f8da8b..c9edae6 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -1326,7 +1326,7 @@ validate_gen_for(node *tree)
return res;
}
-/* list_if: 'if' test [list_iter]
+/* list_if: 'if' old_test [list_iter]
*/
static int
validate_list_if(node *tree)
@@ -1341,12 +1341,12 @@ validate_list_if(node *tree)
if (res)
res = (validate_name(CHILD(tree, 0), "if")
- && validate_test(CHILD(tree, 1)));
+ && validate_old_test(CHILD(tree, 1)));
return res;
}
-/* gen_if: 'if' test [gen_iter]
+/* gen_if: 'if' old_test [gen_iter]
*/
static int
validate_gen_if(node *tree)
@@ -1361,7 +1361,7 @@ validate_gen_if(node *tree)
if (res)
res = (validate_name(CHILD(tree, 0), "if")
- && validate_test(CHILD(tree, 1)));
+ && validate_old_test(CHILD(tree, 1)));
return res;
}