summaryrefslogtreecommitdiffstats
path: root/Include/pythonrun.h
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-06-21 01:15:45 (GMT)
committerGitHub <noreply@github.com>2020-06-21 01:15:45 (GMT)
commitd301d9473e9a9b78d6e6678e9fe5ef66d46084e1 (patch)
treefc2ad7499c7004c72d6d2411206d352cce73b2bf /Include/pythonrun.h
parentfd2c8a73450289da23f7c9b46cd432f1035662a6 (diff)
downloadcpython-d301d9473e9a9b78d6e6678e9fe5ef66d46084e1.zip
cpython-d301d9473e9a9b78d6e6678e9fe5ef66d46084e1.tar.gz
cpython-d301d9473e9a9b78d6e6678e9fe5ef66d46084e1.tar.bz2
[3.9] bpo-40939: Deprecate the PyParser_SimpleParse* functions (GH-21012)
Diffstat (limited to 'Include/pythonrun.h')
-rw-r--r--Include/pythonrun.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index 46091e0..d601005 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -72,16 +72,15 @@ PyAPI_FUNC(struct _mod *) PyParser_ASTFromFileObject(
#define PyParser_SimpleParseFile(FP, S, B) \
PyParser_SimpleParseFileFlags(FP, S, B, 0)
#endif
-PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *, int,
- int);
+Py_DEPRECATED(3.9) PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlags(const char *,
+ int, int);
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
-PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlagsFilename(const char *,
- const char *,
- int, int);
+Py_DEPRECATED(3.9) PyAPI_FUNC(struct _node *) PyParser_SimpleParseStringFlagsFilename(const char *,
+ const char *,
+ int, int);
#endif
-PyAPI_FUNC(struct _node *) PyParser_SimpleParseFileFlags(FILE *, const char *,
- int, int);
-
+Py_DEPRECATED(3.9) PyAPI_FUNC(struct _node *) PyParser_SimpleParseFileFlags(FILE *, const char *,
+ int, int);
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) PyRun_StringFlags(const char *, int, PyObject *,
PyObject *, PyCompilerFlags *);