Skip to content

Commit 8b79946

Browse files
committed
Remove 'initial' arg from type_ready_publish().
1 parent b098884 commit 8b79946

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Objects/typeobject.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3904,7 +3904,7 @@ static int object_init(PyObject *, PyObject *, PyObject *);
39043904
static int update_slot(PyTypeObject *, PyObject *, slot_update_t *update);
39053905
static int fixup_slot_dispatchers(PyTypeObject *);
39063906
static int type_ready(PyTypeObject *, int, int);
3907-
static int type_ready_publish(PyTypeObject *, int);
3907+
static int type_ready_publish(PyTypeObject *);
39083908
static int type_new_set_names(PyTypeObject *);
39093909
static int type_new_init_subclass(PyTypeObject *, PyObject *);
39103910
static bool has_slotdef(PyObject *);
@@ -4927,7 +4927,7 @@ type_new_impl(type_new_ctx *ctx)
49274927
res = fixup_slot_dispatchers(type);
49284928
}
49294929
if (res == 0) {
4930-
res = type_ready_publish(type, 1);
4930+
res = type_ready_publish(type);
49314931
}
49324932
END_TYPE_LOCK();
49334933
if (res < 0) {
@@ -5700,7 +5700,7 @@ type_from_slots_or_spec(
57005700
if (r == 0) {
57015701
/* The type is only revealed to other threads once it is fully
57025702
initialized. */
5703-
r = type_ready_publish(type, 1);
5703+
r = type_ready_publish(type);
57045704
}
57055705
END_TYPE_LOCK();
57065706
if (r < 0) {
@@ -9506,10 +9506,9 @@ type_ready(PyTypeObject *type, int initial, int add_subclasses)
95069506
}
95079507

95089508
static int
9509-
type_ready_publish(PyTypeObject *type, int initial)
9509+
type_ready_publish(PyTypeObject *type)
95109510
{
95119511
ASSERT_TYPE_LOCK_HELD();
9512-
assert(initial);
95139512
assert(!(type->tp_flags & Py_TPFLAGS_READY));
95149513
assert(!is_readying(type));
95159514

0 commit comments

Comments
 (0)