From 47f4437805a65e4394bed5733fe83688d8f7c377 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 12 Mar 2012 11:00:41 -0700 Subject: use correct naming convention --- Python/ast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index 6269c649d0..d67107c529 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -645,7 +645,7 @@ seq_for_testlist(struct compiling *c, const node *n) } static arg_ty -compiler_arg(struct compiling *c, const node *n) +ast_for_arg(struct compiling *c, const node *n) { identifier name; expr_ty annotation = NULL; @@ -859,7 +859,7 @@ ast_for_arguments(struct compiling *c, const node *n) "non-default argument follows default argument"); return NULL; } - arg = compiler_arg(c, ch); + arg = ast_for_arg(c, ch); if (!arg) return NULL; asdl_seq_SET(posargs, k++, arg); -- cgit v1.2.1 From fd489d0feab1fa9bd3e85b2f38040934edad7027 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 12 Mar 2012 11:15:48 -0700 Subject: kill this disabled code --- Python/ast.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index d67107c529..6faf5b21a6 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -666,12 +666,6 @@ ast_for_arg(struct compiling *c, const node *n) } return arg(name, annotation, c->c_arena); -#if 0 - result = Tuple(args, Store, LINENO(n), n->n_col_offset, c->c_arena); - if (!set_context(c, result, Store, n)) - return NULL; - return result; -#endif } /* returns -1 if failed to handle keyword only arguments -- cgit v1.2.1