diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-04-27 03:01:45 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-04-27 03:01:45 +0000 |
commit | 938f9800639bb2bdbb4379dbd9cd7f701d3bfce9 (patch) | |
tree | 16b2117218e7ad1e7af8275474328e4757800de0 /Objects/cellobject.c | |
parent | 249b55c14c5605694df12ebbe69e3d74603819e1 (diff) | |
download | cpython-938f9800639bb2bdbb4379dbd9cd7f701d3bfce9.tar.gz |
Use PyErr_WarnPy3k throughout
Diffstat (limited to 'Objects/cellobject.c')
-rw-r--r-- | Objects/cellobject.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/cellobject.c b/Objects/cellobject.c index 46955ab6e2..e2a8d2969c 100644 --- a/Objects/cellobject.c +++ b/Objects/cellobject.c @@ -55,9 +55,8 @@ static int cell_compare(PyCellObject *a, PyCellObject *b) { /* Py3K warning for comparisons */ - if (Py_Py3kWarningFlag && - PyErr_Warn(PyExc_DeprecationWarning, - "cell comparisons not supported in 3.x") < 0) { + if (PyErr_WarnPy3k("cell comparisons not supported in 3.x", + 1) < 0) { return -2; } |