mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
dict.copy() rises from the ashes. Revert r60687.
This commit is contained in:
parent
dad88dc159
commit
a37430a0ce
3 changed files with 3 additions and 31 deletions
|
@ -1528,10 +1528,6 @@ PyDict_Merge(PyObject *a, PyObject *b, int override)
|
|||
static PyObject *
|
||||
dict_copy(register PyDictObject *mp)
|
||||
{
|
||||
if (Py_Py3kWarningFlag &&
|
||||
PyErr_Warn(PyExc_DeprecationWarning,
|
||||
"dict.copy() not supported in 3.x") < 0)
|
||||
return NULL;
|
||||
return PyDict_Copy((PyObject*)mp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue