summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-04-27 18:40:21 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-04-27 18:40:21 (GMT)
commitf19a7b90bd0cbdf40d02f125db3e39f077f3a89f (patch)
treec5ec7d4eb8e528e91715cccab39590324ca0327c /Objects/dictobject.c
parentfe4948bcefe247ca69e3d605eac1d9d4985e4cfd (diff)
downloadcpython-f19a7b90bd0cbdf40d02f125db3e39f077f3a89f.zip
cpython-f19a7b90bd0cbdf40d02f125db3e39f077f3a89f.tar.gz
cpython-f19a7b90bd0cbdf40d02f125db3e39f077f3a89f.tar.bz2
A little reformating of Py3k warnings
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 2291524..102ea98 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -1779,7 +1779,7 @@ dict_richcompare(PyObject *v, PyObject *w, int op)
else {
/* Py3K warning if comparison isn't == or != */
if (PyErr_WarnPy3k("dict inequality comparisons not supported "
- "in 3.x", 1) < 0) {
+ "in 3.x", 1) < 0) {
return NULL;
}
res = Py_NotImplemented;
@@ -1810,7 +1810,7 @@ static PyObject *
dict_has_key(register PyDictObject *mp, PyObject *key)
{
if (PyErr_WarnPy3k("dict.has_key() not supported in 3.x; "
- "use the in operator", 1) < 0)
+ "use the in operator", 1) < 0)
return NULL;
return dict_contains(mp, key);
}