diff options
author | Petr Viktorin <encukou@gmail.com> | 2022-02-11 16:22:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 16:22:11 (GMT) |
commit | 204946986feee7bc80b233350377d24d20fcb1b8 (patch) | |
tree | e66ab16090f97845e0f95f981c720954e244d102 /Modules/_ssl.c | |
parent | e0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b (diff) | |
download | cpython-204946986feee7bc80b233350377d24d20fcb1b8.zip cpython-204946986feee7bc80b233350377d24d20fcb1b8.tar.gz cpython-204946986feee7bc80b233350377d24d20fcb1b8.tar.bz2 |
bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081)
* Make PyType_GetModuleByDef public (remove underscore)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 07f0580..d7e041f 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -2988,8 +2988,8 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version) int result; /* slower approach, walk MRO and get borrowed reference to module. - * _PyType_GetModuleByDef is required for SSLContext subclasses */ - PyObject *module = _PyType_GetModuleByDef(type, &_sslmodule_def); + * PyType_GetModuleByDef is required for SSLContext subclasses */ + PyObject *module = PyType_GetModuleByDef(type, &_sslmodule_def); if (module == NULL) { PyErr_SetString(PyExc_RuntimeError, "Cannot find internal module state"); |