Skip to content
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

AppriseLocale Deprication Warning: Use setlocale(), getencoding() and getlocale() instead #659

Open
caronc opened this issue Sep 1, 2022 · 5 comments
Labels

Comments

@caronc
Copy link
Owner

caronc commented Sep 1, 2022

📣 Notification Service(s) Impacted
All

🐞 Describe the bug
The following warning appears when building on newer Python versions

AppriseLocale.py:209: DeprecationWarning: Use setlocale(), getencoding() and getlocale() instead
    lang = locale.getdefaultlocale()[0]

Won't be a problem now, but should be addressed so there aren't any surprises in a future release.

💻 Your System Details:

  • Python Version: v3.10

🔮 Additional context
Add any other context about the problem here.

@caronc caronc added the bug label Sep 1, 2022
@caronc
Copy link
Owner Author

caronc commented Oct 19, 2022

@amotl , if i didn't know better, I think you fixed this with your massive test re-factoring?

@amotl
Copy link
Collaborator

amotl commented Oct 19, 2022 via email

@caronc
Copy link
Owner Author

caronc commented Oct 20, 2022

No worries at all... you've just provided me so much code to review, i thought i spotted this and wanted to double check. No worries at all here. We'll leave this ticket open and i'll get to it soon enough.

@dpeet
Copy link

dpeet commented Jun 20, 2023

@caronc what is holding up the merge for this? I just encountered this error in a 3.11 codebase and came here to make a PR, and realized not only had you already done it but it was way better than my naive approach would have been!

@caronc
Copy link
Owner Author

caronc commented Jun 20, 2023

The until tests fail for older versions of Python. Different versions of the older Python packages also have different results for the same test. It's just really inconsistent and i hadn't had time to investigate why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants