Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix locale warning#141

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
demonolock merged 1 commit intopostgrespro:masterfromdura0ok:fix-locale-warning
Aug 16, 2024

Conversation

dura0ok
Copy link
Collaborator

@dura0okdura0ok commentedAug 14, 2024
edited
Loading

DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.
Исправил заменив на getlocale

@demonolock
Copy link
Contributor

@dura0ok посмотрите, пожалуйста, упал тест

AttributeError: module 'locale' has no attribute 'getencoding'
https://app.travis-ci.com/github/postgrespro/testgres/jobs/625126635

Можно попробовать так обойти

if not hasattr(locale, 'getencoding'):    locale.getencoding = locale.getpreferredencoding

DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.rewrite using getlocale
@dura0ok
Copy link
CollaboratorAuthor

dura0ok commentedAug 15, 2024
edited
Loading

@dura0ok посмотрите, пожалуйста, упал тест

AttributeError: module 'locale' has no attribute 'getencoding'https://app.travis-ci.com/github/postgrespro/testgres/jobs/625126635

Можно попробовать так обойти

if not hasattr(locale, 'getencoding'):    locale.getencoding = locale.getpreferredencoding

@demonolock Ага, спасибо, теперь все тесты прошли

@demonolockdemonolock merged commit1d1d3f0 intopostgrespro:masterAug 16, 2024
1 check passed
@dura0okdura0ok deleted the fix-locale-warning branchAugust 27, 2024 06:34
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@dura0ok@demonolock

[8]ページ先頭

©2009-2025 Movatter.jp