Xqt created this task. Xqt added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION `locale.getdefaultlocale()` is deprecated since Python 3.11 and will be removed in Python 3.13 - https://docs.python.org/3.11/whatsnew/3.11.html - https://github.com/python/cpython/issues/90817 **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+ TASK DETAIL https://phabricator.wikimedia.org/T310432 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Xqt, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
