summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-02-12 19:05:36 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-02-12 19:05:36 (GMT)
commita37430a0cec991f341ca637410371532c8e3720c (patch)
tree212f0d38dca36103e4a181f0b9504cd5f09f99d6 /Objects/dictobject.c
parentdad88dc15909843f1a9caf3edd9d0fb61f1ee0e4 (diff)
downloadcpython-a37430a0cec991f341ca637410371532c8e3720c.zip
cpython-a37430a0cec991f341ca637410371532c8e3720c.tar.gz
cpython-a37430a0cec991f341ca637410371532c8e3720c.tar.bz2
dict.copy() rises from the ashes. Revert r60687.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 165221e..eaa490e 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -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);
}