summaryrefslogtreecommitdiffstats
path: root/Modules/_abc.c
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2024-04-18 15:18:22 (GMT)
committerGitHub <noreply@github.com>2024-04-18 15:18:22 (GMT)
commit94444ea45a86ae46e0c11d1917c43c4c271018cd (patch)
tree603c48be6648e272d271d4f04cebaea12def1363 /Modules/_abc.c
parent40f4d641a93b1cba89be4bc7b26cdb481e0450d5 (diff)
downloadcpython-94444ea45a86ae46e0c11d1917c43c4c271018cd.zip
cpython-94444ea45a86ae46e0c11d1917c43c4c271018cd.tar.gz
cpython-94444ea45a86ae46e0c11d1917c43c4c271018cd.tar.bz2
gh-112069: Add _PySet_NextEntryRef to be thread-safe. (gh-117990)
Diffstat (limited to 'Modules/_abc.c')
-rw-r--r--Modules/_abc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_abc.c b/Modules/_abc.c
index ad28035..f2a523e 100644
--- a/Modules/_abc.c
+++ b/Modules/_abc.c
@@ -862,7 +862,7 @@ subclasscheck_check_registry(_abc_data *impl, PyObject *subclass,
// Make a local copy of the registry to protect against concurrent
// modifications of _abc_registry.
- PyObject *registry = PySet_New(registry_shared);
+ PyObject *registry = PyFrozenSet_New(registry_shared);
if (registry == NULL) {
return -1;
}