From 204946986feee7bc80b233350377d24d20fcb1b8 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 11 Feb 2022 17:22:11 +0100 Subject: bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081) * Make PyType_GetModuleByDef public (remove underscore) Co-authored-by: Victor Stinner --- Python/Python-tokenize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/Python-tokenize.c') diff --git a/Python/Python-tokenize.c b/Python/Python-tokenize.c index d3ebbe1331..6acfc2a7cf 100644 --- a/Python/Python-tokenize.c +++ b/Python/Python-tokenize.c @@ -13,7 +13,7 @@ get_tokenize_state(PyObject *module) { } #define _tokenize_get_state_by_type(type) \ - get_tokenize_state(_PyType_GetModuleByDef(type, &_tokenizemodule)) + get_tokenize_state(PyType_GetModuleByDef(type, &_tokenizemodule)) #include "clinic/Python-tokenize.c.h" -- cgit v1.2.1