diff Python/future.c @ 35992:c0c12aa757e7 legacy-trunk

Reduce scope of feature
author Neal Norwitz <nnorwitz@gmail.com>
date Tue, 06 Dec 2005 07:26:02 +0000
parents 11ee982f8c8d
children 5c36c222e7ca
line wrap: on
line diff
--- a/Python/future.c	Tue Dec 06 06:36:36 2005 +0000
+++ b/Python/future.c	Tue Dec 06 07:26:02 2005 +0000
@@ -13,7 +13,6 @@
 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 @@
 	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) {