[Python-checkins] commit of r41622 - python/branches/ast-objects/Python/future.c

neal.norwitz python-checkins at python.org
Tue Dec 6 08:26:31 CET 2005


Author: neal.norwitz
Date: Tue Dec  6 08:26:30 2005
New Revision: 41622

Modified:
   python/branches/ast-objects/Python/future.c
Log:
Reduce scope of feature

Modified: python/branches/ast-objects/Python/future.c
==============================================================================
--- python/branches/ast-objects/Python/future.c	(original)
+++ python/branches/ast-objects/Python/future.c	Tue Dec  6 08:26:30 2005
@@ -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) {


More information about the Python-checkins mailing list