diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-22 17:55:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 17:55:48 (GMT) |
commit | 500c146387b01ea797b52e6a54caf228384e184c (patch) | |
tree | b10c015f37540da45ed534d0b4f9711c12a19f3e /Python/hamt.c | |
parent | 1f8014c5b4ea7acee069ca453f6fbcad5990ebf0 (diff) | |
download | cpython-500c146387b01ea797b52e6a54caf228384e184c.zip cpython-500c146387b01ea797b52e6a54caf228384e184c.tar.gz cpython-500c146387b01ea797b52e6a54caf228384e184c.tar.bz2 |
bpo-46417: Clear more static types (GH-30796)
* Move PyContext static types into object.c static_types list.
* Rename PyContextTokenMissing_Type to _PyContextTokenMissing_Type
and declare it in pycore_context.h.
* _PyHamtItems types are no long exported: replace PyAPI_DATA() with
extern.
Diffstat (limited to 'Python/hamt.c')
-rw-r--r-- | Python/hamt.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Python/hamt.c b/Python/hamt.c index 8c8e025..cbfe445 100644 --- a/Python/hamt.c +++ b/Python/hamt.c @@ -2953,27 +2953,6 @@ PyTypeObject _PyHamt_CollisionNode_Type = { }; -PyStatus -_PyHamt_InitTypes(PyInterpreterState *interp) -{ - if (!_Py_IsMainInterpreter(interp)) { - return _PyStatus_OK(); - } - - if ((PyType_Ready(&_PyHamt_Type) < 0) || - (PyType_Ready(&_PyHamt_ArrayNode_Type) < 0) || - (PyType_Ready(&_PyHamt_BitmapNode_Type) < 0) || - (PyType_Ready(&_PyHamt_CollisionNode_Type) < 0) || - (PyType_Ready(&_PyHamtKeys_Type) < 0) || - (PyType_Ready(&_PyHamtValues_Type) < 0) || - (PyType_Ready(&_PyHamtItems_Type) < 0)) - { - return _PyStatus_ERR("can't init hamt types"); - } - - return _PyStatus_OK(); -} - void _PyHamt_Fini(PyInterpreterState *interp) { |