mirror of
https://github.com/python/cpython.git
synced 2025-07-15 07:15:18 +00:00
gh-73427: deprecate _enablelegacywindowsfsencoding
(#107729)
This commit is contained in:
parent
7ab9efdd6a
commit
bfee2f77e1
4 changed files with 21 additions and 0 deletions
|
@ -1715,6 +1715,13 @@ static PyObject *
|
|||
sys__enablelegacywindowsfsencoding_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=f5c3855b45e24fe9 input=2bfa931a20704492]*/
|
||||
{
|
||||
if (PyErr_WarnEx(PyExc_DeprecationWarning,
|
||||
"sys._enablelegacywindowsfsencoding() is deprecated and will be "
|
||||
"removed in Python 3.16. Use PYTHONLEGACYWINDOWSFSENCODING "
|
||||
"instead.", 1))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
if (_PyUnicode_EnableLegacyWindowsFSEncoding() < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue