diff options
author | Victor Stinner <vstinner@python.org> | 2024-03-14 19:17:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 18:17:43 +0000 |
commit | c432df6d56f3e02530132321b47dcc7b914a3660 (patch) | |
tree | 5681440b657fcbdd83da18a7fb2e74dfef1a1656 /Python/crossinterp.c | |
parent | 25cd8730aa39c18e767f63586dfd1da2fbb307c9 (diff) | |
download | cpython-c432df6d56f3e02530132321b47dcc7b914a3660.tar.gz cpython-c432df6d56f3e02530132321b47dcc7b914a3660.zip |
gh-111696, PEP 737: Add PyType_GetModuleName() function (#116824)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Python/crossinterp.c')
-rw-r--r-- | Python/crossinterp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/crossinterp.c b/Python/crossinterp.c index 143b261f9a5..18dec4dd959 100644 --- a/Python/crossinterp.c +++ b/Python/crossinterp.c @@ -7,7 +7,6 @@ #include "pycore_initconfig.h" // _PyStatus_OK() #include "pycore_namespace.h" //_PyNamespace_New() #include "pycore_pyerrors.h" // _PyErr_Clear() -#include "pycore_typeobject.h" // _PyType_GetModuleName() #include "pycore_weakref.h" // _PyWeakref_GET_REF() @@ -510,7 +509,7 @@ _excinfo_init_type(struct _excinfo_type *info, PyObject *exc) } // __module__ - strobj = _PyType_GetModuleName(type); + strobj = PyType_GetModuleName(type); if (strobj == NULL) { return -1; } |