Content-Length: 254235 | pFad | http://github.com/postgrespro/testgres/commit/9fe94ff7828d75d9861ca18eb990b2396ffbd08f

88 fix locale warning · postgrespro/testgres@9fe94ff · GitHub
Skip to content

Commit 9fe94ff

Browse files
author
Stepan Neretin
committed
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
1 parent e1ed158 commit 9fe94ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testgres/operations/os_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, host='127.0.0.1', port=None, ssh_key=None, username=None):
2020

2121

2222
def get_default_encoding():
23-
return locale.getdefaultlocale()[1] or 'UTF-8'
23+
return locale.getencoding() or 'UTF-8'
2424

2525

2626
class OsOperations:

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/testgres/commit/9fe94ff7828d75d9861ca18eb990b2396ffbd08f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy