summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-09-03 15:06:39 (GMT)
committerGitHub <noreply@github.com>2018-09-03 15:06:39 (GMT)
commit2094c2bea4f79c31819994d8f0afa97ccc52cca8 (patch)
treee1b9c2d270d939108bbdb44e059ec33b7359e4a2 /Modules/main.c
parent8ea09110d413829f71d979d8c7073008cb87fb03 (diff)
downloadcpython-2094c2bea4f79c31819994d8f0afa97ccc52cca8.zip
cpython-2094c2bea4f79c31819994d8f0afa97ccc52cca8.tar.gz
cpython-2094c2bea4f79c31819994d8f0afa97ccc52cca8.tar.bz2
bpo-34567: pythoninfo gets coreconfig (GH-9043)
* Add _testcapi.get_coreconfig() to get the _PyCoreConfig of the interpreter * test.pythoninfo now gets the core configuration using _testcapi.get_coreconfig()
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 974a0a6..6f817b6 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -1018,8 +1018,8 @@ pymain_init_core_argv(_PyMain *pymain, _PyCoreConfig *config, _PyCmdline *cmdlin
}
-static PyObject*
-wstrlist_as_pylist(int len, wchar_t **list)
+PyObject*
+_Py_wstrlist_as_pylist(int len, wchar_t **list)
{
assert(list != NULL || len < 1);
@@ -1502,7 +1502,7 @@ _PyMainInterpreterConfig_Read(_PyMainInterpreterConfig *main_config,
#define COPY_WSTRLIST(ATTR, LEN, LIST) \
do { \
if (ATTR == NULL) { \
- ATTR = wstrlist_as_pylist(LEN, LIST); \
+ ATTR = _Py_wstrlist_as_pylist(LEN, LIST); \
if (ATTR == NULL) { \
return _Py_INIT_NO_MEMORY(); \
} \