summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-01-21 16:53:13 (GMT)
committerGitHub <noreply@github.com>2022-01-21 16:53:13 (GMT)
commita1bf329bca80a0259da454c936075e11e6af710f (patch)
tree739c979b6084526941603b45ce6d17fb6a502002 /Objects/bytesobject.c
parentfda88864980ffce57add0ea03fb9cbda2798975e (diff)
downloadcpython-a1bf329bca80a0259da454c936075e11e6af710f.zip
cpython-a1bf329bca80a0259da454c936075e11e6af710f.tar.gz
cpython-a1bf329bca80a0259da454c936075e11e6af710f.tar.bz2
bpo-46417: Add missing types of _PyTypes_InitTypes() (GH-30749)
Add types removed by mistake by the commit adding _PyTypes_FiniTypes(). Move also PyBool_Type at the end, since it depends on PyLong_Type. PyBytes_Type and PyUnicode_Type no longer depend explicitly on PyBaseObject_Type: it's the default of PyType_Ready().
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 85d6912..b6edfb9 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -2904,7 +2904,7 @@ PyTypeObject PyBytes_Type = {
bytes_methods, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
- &PyBaseObject_Type, /* tp_base */
+ 0, /* tp_base */
0, /* tp_dict */
0, /* tp_descr_get */
0, /* tp_descr_set */