[Python-checkins] r67065 - in python/trunk: Include/compile.h Python/future.c
benjamin.peterson
python-checkins at python.org
Fri Oct 31 00:59:19 CET 2008
Author: benjamin.peterson
Date: Fri Oct 31 00:59:18 2008
New Revision: 67065
Log:
move unprefixed error into .c file
Modified:
python/trunk/Include/compile.h
python/trunk/Python/future.c
Modified: python/trunk/Include/compile.h
==============================================================================
--- python/trunk/Include/compile.h (original)
+++ python/trunk/Include/compile.h Fri Oct 31 00:59:18 2008
@@ -33,8 +33,6 @@
PyCompilerFlags *, PyArena *);
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
-#define ERR_LATE_FUTURE \
-"from __future__ imports must occur at the beginning of the file"
#ifdef __cplusplus
}
Modified: python/trunk/Python/future.c
==============================================================================
--- python/trunk/Python/future.c (original)
+++ python/trunk/Python/future.c Fri Oct 31 00:59:18 2008
@@ -8,6 +8,8 @@
#include "symtable.h"
#define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined"
+#define ERR_LATE_FUTURE \
+"from __future__ imports must occur at the beginning of the file"
static int
future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
More information about the Python-checkins
mailing list