summaryrefslogtreecommitdiffstats
path: root/Objects/typeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r--Objects/typeobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 16b1a30..43633f0 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2712,8 +2712,7 @@ type_new_visit_slots(type_new_ctx *ctx)
if (!ctx->may_add_weak || ctx->add_weak != 0) {
PyErr_SetString(PyExc_TypeError,
"__weakref__ slot disallowed: "
- "either we already got one, "
- "or __itemsize__ != 0");
+ "we already got one");
return -1;
}
ctx->add_weak++;