From 44a90c95ceb6d6348dd7f81db33287f09112118d Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 30 Oct 2008 23:59:18 +0000 Subject: [PATCH] move unprefixed error into .c file --- Include/compile.h | 2 -- Python/future.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/compile.h b/Include/compile.h index 43a470d28f3..61001016aa1 100644 --- a/Include/compile.h +++ b/Include/compile.h @@ -33,8 +33,6 @@ PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *, 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 } diff --git a/Python/future.c b/Python/future.c index 2c6aaa22948..532a7fdbc5c 100644 --- a/Python/future.c +++ b/Python/future.c @@ -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)