diff options
| author | Victor Stinner <vstinner@python.org> | 2023-06-21 13:44:25 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-21 13:44:25 (GMT) |
| commit | fb1e691e4bc7757c11bf9e51dda675f15537db8c (patch) | |
| tree | 6bc8c40a35e6ccbc6c0f97f628a771b8df73f97a /Modules/_ssl/debughelpers.c | |
| parent | eaa670228066220f08c8d73f80365c50058d40b8 (diff) | |
| download | cpython-fb1e691e4bc7757c11bf9e51dda675f15537db8c.zip cpython-fb1e691e4bc7757c11bf9e51dda675f15537db8c.tar.gz cpython-fb1e691e4bc7757c11bf9e51dda675f15537db8c.tar.bz2 | |
gh-105927: _abc and _thread use PyWeakref_GetRef() (#105961)
Hold a strong reference on the object, rather than using a borrowed reference:
replace PyWeakref_GET_OBJECT() with PyWeakref_GetRef() and
_PyWeakref_GET_REF().
Remove assert(PyWeakref_CheckRef(localweakref)) since it's already
tested by _PyWeakref_GET_REF().
Diffstat (limited to 'Modules/_ssl/debughelpers.c')
0 files changed, 0 insertions, 0 deletions
