mirror of https://github.com/python/cpython.git
bpo-44252: Correctly implement gc support for SSLError objects (GH-26439) (GH-26441)
(cherry picked from commit 8b4312b909
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
parent
7261b29fa9
commit
a7aa105702
|
@ -436,8 +436,7 @@ static PyType_Slot sslerror_type_slots[] = {
|
||||||
static PyType_Spec sslerror_type_spec = {
|
static PyType_Spec sslerror_type_spec = {
|
||||||
.name = "ssl.SSLError",
|
.name = "ssl.SSLError",
|
||||||
.basicsize = sizeof(PyOSErrorObject),
|
.basicsize = sizeof(PyOSErrorObject),
|
||||||
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
|
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_IMMUTABLETYPE),
|
||||||
Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_HAVE_GC),
|
|
||||||
.slots = sslerror_type_slots
|
.slots = sslerror_type_slots
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue