summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.h
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-02-11 16:22:11 (GMT)
committerGitHub <noreply@github.com>2022-02-11 16:22:11 (GMT)
commit204946986feee7bc80b233350377d24d20fcb1b8 (patch)
treee66ab16090f97845e0f95f981c720954e244d102 /Modules/_ssl.h
parente0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b (diff)
downloadcpython-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.h')
-rw-r--r--Modules/_ssl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.h b/Modules/_ssl.h
index 5fe6504..5593a45 100644
--- a/Modules/_ssl.h
+++ b/Modules/_ssl.h
@@ -42,7 +42,7 @@ get_ssl_state(PyObject *module)
}
#define get_state_type(type) \
- (get_ssl_state(_PyType_GetModuleByDef(type, &_sslmodule_def)))
+ (get_ssl_state(PyType_GetModuleByDef(type, &_sslmodule_def)))
#define get_state_ctx(c) (((PySSLContext *)(c))->state)
#define get_state_sock(s) (((PySSLSocket *)(s))->ctx->state)
#define get_state_obj(o) ((_sslmodulestate *)PyType_GetModuleState(Py_TYPE(o)))