mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46659: Deprecate locale.getdefaultlocale() (GH-31206)
The locale.getdefaultlocale() function is deprecated and will be removed in Python 3.13. Use locale.setlocale(), locale.getpreferredencoding(False) and locale.getlocale() functions instead.
This commit is contained in:
parent
ccbe8045fa
commit
b899126094
5 changed files with 20 additions and 1 deletions
|
@ -486,6 +486,12 @@ Deprecated
|
|||
|
||||
(Contributed by Hugo van Kemenade in :issue:`45173`.)
|
||||
|
||||
* The :func:`locale.getdefaultlocale` function is deprecated and will be
|
||||
removed in Python 3.13. Use :func:`locale.setlocale`,
|
||||
:func:`locale.getpreferredencoding(False) <locale.getpreferredencoding>` and
|
||||
:func:`locale.getlocale` functions instead.
|
||||
(Contributed by Victor Stinner in :issue:`46659`.)
|
||||
|
||||
|
||||
Removed
|
||||
=======
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue