]> granicus.if.org Git - python/commitdiff
Reduce scope of feature
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 6 Dec 2005 07:26:02 +0000 (07:26 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 6 Dec 2005 07:26:02 +0000 (07:26 +0000)
Python/future.c

index ec588c41b5a343addbd9913bc6feebc1aa4ff59c..da56dfb14c5fb1322fe19052c16d8b65b4e07b72 100644 (file)
@@ -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) {