friendly-traceback / friendly

Friendly-traceback's version used in most situations
https://friendly-traceback.github.io/docs/index.html
MIT License
40 stars 5 forks source link

Avoid using `getdefaultlocale()` #51

Closed lucach closed 1 year ago

lucach commented 1 year ago

It is deprecated since Python 3.11 and will be removed in 3.13: see https://bugs.python.org/issue46659 and https://docs.python.org/3.11/library/locale.html#locale.getdefaultlocale

On Python 3.11, just importing friendly produces a rather annoying warning

>>> import friendly
`DeprecationWarning`: Use setlocale(), getencoding() and getlocale() instead
aroberge commented 1 year ago

Thank you very much for noticing this and fixing it.