locale.getdefaultlocale() is deprecated since Python 3.11 and will be removed in Python 3.13
Where is it used?
It is used in config.py only
https://codesearch.wmcloud.org/pywikibot/?q=getdefaultlocale&i=nope&files=&excludeFiles=&repos=
What should be used instead?:
Use locale.setlocale(), locale.getpreferredencoding(False) and locale.getlocale() functions instead.
Software version:
- Python 3.11+
- Pywikibot 3.0+