summaryrefslogtreecommitdiffstats
path: root/Python/future.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-12-06 07:26:02 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-12-06 07:26:02 (GMT)
commitb15ec09343262001f2b6398db97481684a201666 (patch)
tree7641e9b58a198bc39695cbced87a2682ea388456 /Python/future.c
parentc1f213ebdcf52ce57152074515b22adfb8f46adf (diff)
downloadcpython-b15ec09343262001f2b6398db97481684a201666.zip
cpython-b15ec09343262001f2b6398db97481684a201666.tar.gz
cpython-b15ec09343262001f2b6398db97481684a201666.tar.bz2
Reduce scope of feature
Diffstat (limited to 'Python/future.c')
-rw-r--r--Python/future.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/future.c b/Python/future.c
index ec588c41..da56dfb 100644
--- a/Python/future.c
+++ b/Python/future.c
@@ -13,7 +13,6 @@ static int
future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
{
int i;
- const char *feature;
asdl_seq *names;
assert(s->kind == ImportFrom_kind);
@@ -21,7 +20,7 @@ future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
names = s->v.ImportFrom.names;
for (i = 0; i < asdl_seq_LEN(names); i++) {
alias_ty name = asdl_seq_GET(names, i);
- feature = PyString_AsString(name->name);
+ const char *feature = PyString_AsString(name->name);
if (!feature)
return 0;
if (strcmp(feature, FUTURE_NESTED_SCOPES) == 0) {