Skip to content

Commit

Permalink
Immortalize Ci_PyWaitHandleObject
Browse files Browse the repository at this point in the history
Summary:
This was lost in the 3.8 -> 3.10 port. This singleton should be
immortal, just like `None`, `True`, and `False`.

Reviewed By: alexmalyshev

Differential Revision: D52644440

fbshipit-source-id: 69860543b2eccdfc5941f08592e2314bad9f37dc
  • Loading branch information
swtaarrs authored and facebook-github-bot committed Jan 9, 2024
1 parent 7731b03 commit d9d363f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Objects/genobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1578,8 +1578,8 @@ PyTypeObject Ci_PyWaitHandle_Type = {
};

static Ci_PyWaitHandleObject Ci_PyWaitHandle = {
{_PyObject_EXTRA_INIT
1, &Ci_PyWaitHandle_Type}, NULL, NULL
PyObject_HEAD_IMMORTAL_INIT(&Ci_PyWaitHandle_Type)
NULL, NULL
};

PyObject *
Expand Down

0 comments on commit d9d363f

Please sign in to comment.