-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
locale.getdefaultlocale() is deprecated #249
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Thank you for detailing this so clearly @bcbnz!! |
The
locale.getdefaultlocale()
function was deprecated in Python 3.11 and will be removed in 3.13 (see the note in the library docs). The deprecation warning issued when running saysuse setlocale(), getencoding() and getlocale() instead
.The only place it is used is crypto/encoding.py:
nativeauthenticator/nativeauthenticator/crypto/encoding.py
Lines 187 to 198 in 3db8285
I guess either
locale.getencoding()
orlocale.getpreferredencoding
would be a suitable replacement.The text was updated successfully, but these errors were encountered: