File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,23 @@ PyAPI_FUNC(struct _mod *) PyParser_ASTFromFileObject(
7272#define PyParser_SimpleParseFile (FP , S , B ) \
7373 PyParser_SimpleParseFileFlags(FP, S, B, 0)
7474#endif
75- Py_DEPRECATED (3.9 ) PyAPI_FUNC (struct _node * ) PyParser_SimpleParseStringFlags (const char * ,
76- int , int );
75+
76+ #ifndef Py_BUILD_CORE
77+ Py_DEPRECATED (3.9 )
78+ #endif
79+ PyAPI_FUNC (struct _node * ) PyParser_SimpleParseStringFlags (const char * , int , int );
7780#if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 >= 0x03030000
78- Py_DEPRECATED (3.9 ) PyAPI_FUNC (struct _node * ) PyParser_SimpleParseStringFlagsFilename (const char * ,
79- const char * ,
80- int , int );
81+ #ifndef Py_BUILD_CORE
82+ Py_DEPRECATED (3.9 )
83+ #endif
84+ PyAPI_FUNC (struct _node * ) PyParser_SimpleParseStringFlagsFilename (const char * ,
85+ const char * ,
86+ int , int );
87+ #endif
88+ #ifndef Py_BUILD_CORE
89+ Py_DEPRECATED (3.9 )
8190#endif
82- Py_DEPRECATED (3.9 ) PyAPI_FUNC (struct _node * ) PyParser_SimpleParseFileFlags (FILE * , const char * ,
83- int , int );
91+ PyAPI_FUNC (struct _node * ) PyParser_SimpleParseFileFlags (FILE * , const char * , int , int );
8492#ifndef Py_LIMITED_API
8593PyAPI_FUNC (PyObject * ) PyRun_StringFlags (const char * , int , PyObject * ,
8694 PyObject * , PyCompilerFlags * );
You can’t perform that action at this time.
0 commit comments