Skip to content

Commit 0370d59

Browse files
Fix error message if _PyType_InitSlotDefs fails
1 parent 08740af commit 0370d59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/pylifecycle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ pycore_init_builtins(PyThreadState *tstate)
823823
interp->callable_cache.object__getattribute__ = object__getattribute__;
824824

825825
if (_PyType_InitSlotDefs(interp) < 0) {
826-
return _PyStatus_ERR("failed to precalculate slotdefs unique names");
826+
return _PyStatus_ERR("failed to init slotdefs");
827827
}
828828

829829
if (_PyBuiltins_AddExceptions(bimod) < 0) {

0 commit comments

Comments
 (0)