summaryrefslogtreecommitdiffstats
path: root/Include/fileobject.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-17 14:12:00 (GMT)
committerGitHub <noreply@github.com>2022-06-17 14:12:00 (GMT)
commit0ff626f210c69643d0d5afad1e6ec6511272b3ce (patch)
treecc6b273fa241aeaccbcfa1ecff5bb6793f746e84 /Include/fileobject.h
parentf64557f4803528c53bb9a1d565e3cdf92e97152f (diff)
downloadcpython-0ff626f210c69643d0d5afad1e6ec6511272b3ce.zip
cpython-0ff626f210c69643d0d5afad1e6ec6511272b3ce.tar.gz
cpython-0ff626f210c69643d0d5afad1e6ec6511272b3ce.tar.bz2
gh-77782: Deprecate global configuration variable (#93943)
Deprecate global configuration variable like Py_IgnoreEnvironmentFlag: the Py_InitializeFromConfig() API should be instead. Fix declaration of Py_GETENV(): use PyAPI_FUNC(), not PyAPI_DATA().
Diffstat (limited to 'Include/fileobject.h')
-rw-r--r--Include/fileobject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/fileobject.h b/Include/fileobject.h
index 4c983e7..02bd7c9 100644
--- a/Include/fileobject.h
+++ b/Include/fileobject.h
@@ -19,14 +19,14 @@ PyAPI_FUNC(int) PyObject_AsFileDescriptor(PyObject *);
/* The default encoding used by the platform file system APIs
If non-NULL, this is different than the default encoding for strings
*/
-PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
+Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
-PyAPI_DATA(const char *) Py_FileSystemDefaultEncodeErrors;
+Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncodeErrors;
#endif
PyAPI_DATA(int) Py_HasFileSystemDefaultEncoding;
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
-PyAPI_DATA(int) Py_UTF8Mode;
+Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_UTF8Mode;
#endif
/* A routine to check if a file descriptor can be select()-ed. */