[Python-checkins] commit of r41623 - python/branches/ast-arena/Python/future.c

Michael Hudson mwh at python.net
Tue Dec 6 09:50:09 CET 2005


"neal.norwitz" <python-checkins at python.org> writes:

> Author: neal.norwitz
> Date: Tue Dec  6 08:26:47 2005
> New Revision: 41623
>
> Modified:
>    python/branches/ast-arena/Python/future.c
> Log:
> Reduce scope of feature
>
> Modified: python/branches/ast-arena/Python/future.c
> ==============================================================================
> --- python/branches/ast-arena/Python/future.c	(original)
> +++ python/branches/ast-arena/Python/future.c	Tue Dec  6 08:26:47 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);

This isn't C89, for the usual boring "code before declaration" reasons.

Cheers,
mwh

-- 
  You can lead an idiot to knowledge but you cannot make him 
  think.  You can, however, rectally insert the information, 
  printed on stone tablets, using a sharpened poker.        -- Nicolai
               -- http://home.xnet.com/~raven/Sysadmin/ASR.Quotes.html


More information about the Python-checkins mailing list