summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-14 21:07:09 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-14 21:07:09 +0200
commit90c37cc140bdc5166ca78202371e798858b62c79 (patch)
treee8539a1bce502320de8aaec42a6fe462ee80a1c1 /Objects/longobject.c
parent043c30ba7dfbd17596a59f6ac6afe508a2e04fbd (diff)
downloadcpython-90c37cc140bdc5166ca78202371e798858b62c79.tar.gz
Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 29040e60a9..4ae22ef31b 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;
}