aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2018-06-11 00:48:28 +0200
committerNed Deily <nad@python.org>2018-06-10 18:48:28 -0400
commit8398713cea0eb17b013f25f86bef47c7e5e63139 (patch)
treebbfcab1633b490ea30724338d5d4e3a43ece3a9b /Objects/abstract.c
parentbpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (diff)
downloadcpython-8398713cea0eb17b013f25f86bef47c7e5e63139.tar.gz
cpython-8398713cea0eb17b013f25f86bef47c7e5e63139.tar.bz2
cpython-8398713cea0eb17b013f25f86bef47c7e5e63139.zip
bpo-33738: Address review comments in GH #7477 (GH-7585)
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index e2700e3f80d..192ade11578 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1245,6 +1245,7 @@ PyNumber_Absolute(PyObject *o)
}
#undef PyIndex_Check
+
int
PyIndex_Check(PyObject *obj)
{
@@ -2544,6 +2545,7 @@ PyObject_GetIter(PyObject *o)
}
#undef PyIter_Check
+
int PyIter_Check(PyObject *obj)
{
return obj->ob_type->tp_iternext != NULL &&