mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Removed all uses of the out-of-favor __safe_for_unpickling__ magic
attr, and copy_reg.safe_constructors.
This commit is contained in:
parent
371935fc06
commit
1f1b2d2e68
5 changed files with 5 additions and 79 deletions
|
@ -392,5 +392,4 @@ PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc *desc)
|
|||
PyInt_FromLong((long) n_members));
|
||||
PyDict_SetItemString(dict, unnamed_fields_key,
|
||||
PyInt_FromLong((long) n_unnamed_members));
|
||||
PyDict_SetItemString(dict, "__safe_for_unpickling__", Py_True);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue