summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-03-13 00:14:59 -0700
committerSenthil Kumaran <senthil@uthcode.com>2012-03-13 00:14:59 -0700
commit784ddb08a692a531d35e48c44bd7d84592ffb32a (patch)
tree6162ff8bdf913cf64adc06094f1c8bee8b1d6606 /Python/ast.c
parent6080db76066a83fc7c2e50975b616f649fbfb2d6 (diff)
parentdf723e1e5e4e0022a28618f953219aaf52852643 (diff)
downloadcpython-git-784ddb08a692a531d35e48c44bd7d84592ffb32a.tar.gz
merge heads
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 6269c649d0..6faf5b21a6 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;
@@ -666,12 +666,6 @@ compiler_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
@@ -859,7 +853,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);