summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-03-13 00:14:25 -0700
committerSenthil Kumaran <senthil@uthcode.com>2012-03-13 00:14:25 -0700
commit7554f0dd3ca6219db07adcc222cef776d37512a6 (patch)
tree9139b775096275084284e8b2cf459c81818ffc58 /Python/ast.c
parent9186850088a94627b60fa80102edc858c332b51c (diff)
parenta9719057a2ee1875c6334b1d5fbbf66cfc02ca78 (diff)
downloadcpython-git-7554f0dd3ca6219db07adcc222cef776d37512a6.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 0f93098712..eb8aed2a2e 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1153,7 +1153,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;
@@ -1174,12 +1174,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
@@ -1367,7 +1361,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);