gh-130163: Fix crashes related to PySys_GetObject() (GH-130503)
The use of PySys_GetObject() and _PySys_GetAttr(), which return a borrowed reference, has been replaced by using one of the following functions, which return a strong reference and distinguish a missing attribute from an error: _PySys_GetOptionalAttr(), _PySys_GetOptionalAttrString(), _PySys_GetRequiredAttr(), and _PySys_GetRequiredAttrString().
S
Serhiy Storchaka committed
0ef4ffeefd1737c18dc9326133c7894d58108c2e
Parent: 2dad1e0
Committed by GitHub <noreply@github.com>
on 2/25/2025, 9:04:27 PM