Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c07f112

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 callable https://app.travis-ci.com/github/postgrespro/testgres/jobs/631402370 The code: _get_default_encoding_func = _make_get_default_encoding_func.__func__() is processed without problems.
1 parent bab1d8e commit c07f112

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
return locale.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
def GetDefaultEncoding():

0 commit comments

Comments
 (0)