dict.copy() rises from the ashes. Revert r60687.

This commit is contained in:
Raymond Hettinger 2008-02-12 19:05:36 +00:00
parent dad88dc159
commit a37430a0ce
3 changed files with 3 additions and 31 deletions

View file

@ -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);
}