summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-14 19:07:09 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-14 19:07:09 (GMT)
commitc836a28cc1bf6c0dcbcf9c30f47b731943e21b60 (patch)
tree98031c255e283b43c359e3528c6eef8e602dd25c /Objects
parent84d28b4ee5983bcb048323a0e56ea4c5498a0652 (diff)
downloadcpython-c836a28cc1bf6c0dcbcf9c30f47b731943e21b60.zip
cpython-c836a28cc1bf6c0dcbcf9c30f47b731943e21b60.tar.gz
cpython-c836a28cc1bf6c0dcbcf9c30f47b731943e21b60.tar.bz2
Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c9
-rw-r--r--Objects/longobject.c9
2 files changed, 0 insertions, 18 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index f776aa9..124e766 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1162,15 +1162,6 @@ PyNumber_Index(PyObject *item)
Py_DECREF(result);
return NULL;
}
- /* Issue #17576: warn if 'result' not of exact type int. */
- if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
- "__index__ returned non-int (type %.200s). "
- "The ability to return an instance of a strict subclass of int "
- "is deprecated, and may be removed in a future version of Python.",
- result->ob_type->tp_name)) {
- Py_DECREF(result);
- return NULL;
- }
return result;
}
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 29040e6..4ae22ef 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -153,15 +153,6 @@ _PyLong_FromNbInt(PyObject *integral)
Py_DECREF(result);
return NULL;
}
- /* Issue #17576: warn if 'result' not of exact type int. */
- if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
- "__int__ returned non-int (type %.200s). "
- "The ability to return an instance of a strict subclass of int "
- "is deprecated, and may be removed in a future version of Python.",
- result->ob_type->tp_name)) {
- Py_DECREF(result);
- return NULL;
- }
return (PyLongObject *)result;
}