From 7a2f83b706b3b8ba4aa62b0e125fb604c7f6b48e Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Thu, 16 Feb 2006 17:07:41 +0000 Subject: Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple(). --- Modules/arraymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 9444e9eca9..dffb2e71e0 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1195,7 +1195,7 @@ array_fromfile(arrayobject *self, PyObject *args) PyObject *f; Py_ssize_t n; FILE *fp; - if (!PyArg_ParseTuple(args, "Oi:fromfile", &f, &n)) + if (!PyArg_ParseTuple(args, "On:fromfile", &f, &n)) return NULL; fp = PyFile_AsFile(f); if (fp == NULL) { -- cgit v1.2.1