summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-03-21 18:44:43 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-03-21 18:44:43 (GMT)
commitb7f1da5a3c699fe95d7364f29c71f101e65257fa (patch)
tree714ddaa51a9657562b1831a101e25f66b6bd8ad2 /Include
parentd614e707caafc87bd644c1da51ea817c3df54d7b (diff)
downloadcpython-b7f1da5a3c699fe95d7364f29c71f101e65257fa.zip
cpython-b7f1da5a3c699fe95d7364f29c71f101e65257fa.tar.gz
cpython-b7f1da5a3c699fe95d7364f29c71f101e65257fa.tar.bz2
make _PyNumber_ConvertIntegralToInt static, since it's only used in abstract.c
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 3a99c4e..4a27bfb 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -773,21 +773,6 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
PyAPI_FUNC(Py_ssize_t) PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
/*
- Returns the Integral instance converted to an int. The
- instance is expected to be int or long or have an __int__
- method. Steals integral's reference. error_format will be
- used to create the TypeError if integral isn't actually an
- Integral instance. error_format should be a format string
- that can accept a char* naming integral's type.
- */
-
-#ifndef Py_LIMITED_API
- PyAPI_FUNC(PyObject *) _PyNumber_ConvertIntegralToInt(
- PyObject *integral,
- const char* error_format);
-#endif
-
- /*
Returns the object converted to Py_ssize_t by going through
PyNumber_Index first. If an overflow error occurs while
converting the int-or-long to Py_ssize_t, then the second argument