]> granicus.if.org Git - python/commitdiff
move unprefixed error into .c file
authorBenjamin Peterson <benjamin@python.org>
Thu, 30 Oct 2008 23:59:18 +0000 (23:59 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 30 Oct 2008 23:59:18 +0000 (23:59 +0000)
Include/compile.h
Python/future.c

index 43a470d28f3d2d7b32e65b89fefd93b982a62303..61001016aa16a3f44f35fbd343d284ee89c9b39c 100644 (file)
@@ -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
 }
index 2c6aaa2294819e5875a57e83708c893502c836c4..532a7fdbc5c97f980f9b1e3776160e6800034dde 100644 (file)
@@ -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)