summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 5d69911..f740977 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -413,7 +413,7 @@ stdprinter_write(PyStdPrinter_Object *self, PyObject *args)
static PyObject *
stdprinter_fileno(PyStdPrinter_Object *self)
{
- return PyInt_FromLong((long) self->fd);
+ return PyLong_FromLong((long) self->fd);
}
static PyObject *