From cb9fbd35885a8921b9df99e801df4f82e3ba336b Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 1 May 2019 23:51:56 -0400 Subject: bpo-36763: Make _PyCoreConfig.check_hash_pycs_mode public (GH-13052) _PyCoreConfig: Rename _check_hash_pycs_mode field to check_hash_pycs_mode (make it public) and change its type from "const char*" to "wchar_t*". --- Python/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/import.c') diff --git a/Python/import.c b/Python/import.c index 3b2090b963..b03bc98773 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2305,7 +2305,7 @@ PyInit__imp(void) if (d == NULL) goto failure; _PyCoreConfig *config = &_PyInterpreterState_Get()->core_config; - PyObject *pyc_mode = PyUnicode_FromString(config->_check_hash_pycs_mode); + PyObject *pyc_mode = PyUnicode_FromWideChar(config->check_hash_pycs_mode, -1); if (pyc_mode == NULL) { goto failure; } -- cgit v1.2.1