summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2012-03-12 15:18:30 -0700
committerEric V. Smith <eric@trueblade.com>2012-03-12 15:18:30 -0700
commit1d4798cb93aabdea7843c85d60b0e898107bae05 (patch)
tree8a54e47a75d6e9b3b2d17bc1bfd3f9820d698bc7 /Python
parentedbb6ca084b4446dcf6c78c942e875a3b16a4397 (diff)
parent85769539a3b4b229c2a4303653d125f323c5df8c (diff)
downloadcpython-git-1d4798cb93aabdea7843c85d60b0e898107bae05.tar.gz
Merge heads.
Diffstat (limited to 'Python')
-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);