move unprefixed error into .c file
This commit is contained in:
parent
d79af0fc52
commit
44a90c95ce
|
@ -33,8 +33,6 @@ PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
|
||||||
PyCompilerFlags *, PyArena *);
|
PyCompilerFlags *, PyArena *);
|
||||||
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
#include "symtable.h"
|
#include "symtable.h"
|
||||||
|
|
||||||
#define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined"
|
#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
|
static int
|
||||||
future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
|
future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
|
||||||
|
|
Loading…
Reference in New Issue