mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
This commit is contained in:
parent
1a3284ed69
commit
217cfd1c86
123 changed files with 888 additions and 885 deletions
|
|
@ -28,7 +28,7 @@ spamlist_getstate(spamlistobject *self, PyObject *args)
|
|||
{
|
||||
if (!PyArg_ParseTuple(args, ":getstate"))
|
||||
return NULL;
|
||||
return PyInt_FromLong(self->state);
|
||||
return PyLong_FromLong(self->state);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
@ -91,7 +91,7 @@ spamlist_init(spamlistobject *self, PyObject *args, PyObject *kwds)
|
|||
static PyObject *
|
||||
spamlist_state_get(spamlistobject *self)
|
||||
{
|
||||
return PyInt_FromLong(self->state);
|
||||
return PyLong_FromLong(self->state);
|
||||
}
|
||||
|
||||
static PyGetSetDef spamlist_getsets[] = {
|
||||
|
|
@ -153,7 +153,7 @@ spamdict_getstate(spamdictobject *self, PyObject *args)
|
|||
{
|
||||
if (!PyArg_ParseTuple(args, ":getstate"))
|
||||
return NULL;
|
||||
return PyInt_FromLong(self->state);
|
||||
return PyLong_FromLong(self->state);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue