summaryrefslogtreecommitdiff
path: root/PC/python_uwp.cpp
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-10-01 00:46:42 +0200
committerNick Coghlan <ncoghlan@gmail.com>2019-10-01 08:46:42 +1000
commitbdace21b769998396d0ccc8da99a8ca9b507bfdf (patch)
treede149589d8dd498ddf3574e9d9551951d3f7e79b /PC/python_uwp.cpp
parent92ca515ee1efbdc51678e12d105ad642c9b9cc13 (diff)
downloadpython-bdace21b769998396d0ccc8da99a8ca9b507bfdf.tar.gz
python-bdace21b769998396d0ccc8da99a8ca9b507bfdf.zip
bpo-38304: Remove PyConfig.struct_size (GH-16500)
For now, we'll rely on the fact that the config structures aren't covered by the stable ABI. We may revisit this in the future if we further explore the idea of offering a stable embedding API.
Diffstat (limited to 'PC/python_uwp.cpp')
-rw-r--r--PC/python_uwp.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/PC/python_uwp.cpp b/PC/python_uwp.cpp
index 2656d188c25..758c8f73725 100644
--- a/PC/python_uwp.cpp
+++ b/PC/python_uwp.cpp
@@ -165,12 +165,8 @@ int
wmain(int argc, wchar_t **argv)
{
PyStatus status;
-
PyPreConfig preconfig;
- preconfig.struct_size = sizeof(PyPreConfig);
-
PyConfig config;
- config.struct_size = sizeof(PyConfig);
const wchar_t *moduleName = NULL;
const wchar_t *p = wcsrchr(argv[0], L'\\');
@@ -189,10 +185,7 @@ wmain(int argc, wchar_t **argv)
}
}
- status = PyPreConfig_InitPythonConfig(&preconfig);
- if (PyStatus_Exception(status)) {
- goto fail_without_config;
- }
+ PyPreConfig_InitPythonConfig(&preconfig);
if (!moduleName) {
status = Py_PreInitializeFromArgs(&preconfig, argc, argv);
if (PyStatus_Exception(status)) {