[Python-checkins] commit of r41621 - python/trunk/Python/future.c
neal.norwitz
python-checkins at python.org
Tue Dec 6 08:26:02 CET 2005
Author: neal.norwitz
Date: Tue Dec 6 08:26:02 2005
New Revision: 41621
Modified:
python/trunk/Python/future.c
Log:
Reduce scope of feature
Modified: python/trunk/Python/future.c
==============================================================================
--- python/trunk/Python/future.c (original)
+++ python/trunk/Python/future.c Tue Dec 6 08:26:02 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