diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-10-01 10:56:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 10:56:37 +0200 |
commit | 3c30a76f3d3c0dcc1fb4de097fa4a3a4c92c0b0b (patch) | |
tree | bb73b56814d30967e67cc61eb8b66cab83477c3a /PC/python_uwp.cpp | |
parent | 94e165096fd65e8237e60de570fb609604ab94c9 (diff) | |
download | cpython-git-3c30a76f3d3c0dcc1fb4de097fa4a3a4c92c0b0b.tar.gz |
bpo-38304: Remove PyConfig.struct_size (GH-16500) (GH-16508)
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.
(cherry picked from commit bdace21b769998396d0ccc8da99a8ca9b507bfdf)
Diffstat (limited to 'PC/python_uwp.cpp')
-rw-r--r-- | PC/python_uwp.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/PC/python_uwp.cpp b/PC/python_uwp.cpp index 2656d188c2..758c8f7372 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)) { |