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
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix locale warning
DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.rewrite using getlocale
  • Loading branch information
Stepan Neretin committedAug 15, 2024
commit7903ad1b7c4f5f26b97bd2b0460f32ed8f1568b1
4 changes: 3 additions & 1 deletiontestgres/operations/os_ops.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,7 +20,9 @@ def __init__(self, host='127.0.0.1', port=None, ssh_key=None, username=None):


def get_default_encoding():
return locale.getdefaultlocale()[1] or 'UTF-8'
if not hasattr(locale, 'getencoding'):
locale.getencoding = locale.getpreferredencoding
return locale.getencoding() or 'UTF-8'


class OsOperations:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp