[Python-checkins] r45296 - python/trunk/Modules/parsermodule.c
neal.norwitz
python-checkins at python.org
Wed Apr 12 07:24:43 CEST 2006
Author: neal.norwitz
Date: Wed Apr 12 07:24:39 2006
New Revision: 45296
Modified:
python/trunk/Modules/parsermodule.c
Log:
Update for new grammar
Modified: python/trunk/Modules/parsermodule.c
==============================================================================
--- python/trunk/Modules/parsermodule.c (original)
+++ python/trunk/Modules/parsermodule.c Wed Apr 12 07:24:39 2006
@@ -1326,7 +1326,7 @@
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 @@
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 @@
if (res)
res = (validate_name(CHILD(tree, 0), "if")
- && validate_test(CHILD(tree, 1)));
+ && validate_old_test(CHILD(tree, 1)));
return res;
}
More information about the Python-checkins
mailing list