Mercurial > cpython-lru_cache-weakref
diff Objects/rangeobject.c @ 76105:fb907ee4fdfa
Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 05 Apr 2012 00:04:20 +0200 |
| parents | 4ff234337e24 |
| children | a3784c8f165e |
line wrap: on
line diff
--- a/Objects/rangeobject.c Wed Apr 04 20:17:27 2012 +0200 +++ b/Objects/rangeobject.c Thu Apr 05 00:04:20 2012 +0200 @@ -985,7 +985,7 @@ if (range == NULL) goto err; /* return the result */ - return Py_BuildValue("N(N)i", _PyIter_GetBuiltin("iter"), range, r->index); + return Py_BuildValue("N(N)i", _PyObject_GetBuiltin("iter"), range, r->index); err: Py_XDECREF(start); Py_XDECREF(stop); @@ -1171,7 +1171,7 @@ } /* return the result */ - return Py_BuildValue("N(N)O", _PyIter_GetBuiltin("iter"), range, r->index); + return Py_BuildValue("N(N)O", _PyObject_GetBuiltin("iter"), range, r->index); } static PyObject *
