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

Commitc07f112

Browse files
Initialization of Helpers._get_default_encoding_func is corrected [py3.9] (#221)
Python 3.9 does not undestand the following code:_get_default_encoding_func = _make_get_default_encoding_func()ERROR - TypeError: 'staticmethod' object is not callablehttps://app.travis-ci.com/github/postgrespro/testgres/jobs/631402370The code:_get_default_encoding_func = _make_get_default_encoding_func.__func__()is processed without problems.
1 parentbab1d8e commitc07f112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎testgres/operations/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def _make_get_default_encoding_func():
1212
returnlocale.getpreferredencoding
1313

1414
# Prepared pointer on function to get a name of system codepage
15-
_get_default_encoding_func=_make_get_default_encoding_func()
15+
_get_default_encoding_func=_make_get_default_encoding_func.__func__()
1616

1717
@staticmethod
1818
defGetDefaultEncoding():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp