##// END OF EJS Templates
parsers: use 'k' format for Py_BuildValue instead of 'n' because Python 2.4...
Mads Kiilerich -
r23073:5715c93c stable
parent child Browse files
Show More
@@ -873,12 +873,13 b' static PyObject *list_copy(PyObject *lis'
873 return newlist;
873 return newlist;
874 }
874 }
875
875
876 static int check_filter(PyObject *filter, Py_ssize_t arg) {
876 /* arg should be Py_ssize_t but Python 2.4 do not support the n format */
877 static int check_filter(PyObject *filter, unsigned long arg) {
877 if (filter) {
878 if (filter) {
878 PyObject *arglist, *result;
879 PyObject *arglist, *result;
879 int isfiltered;
880 int isfiltered;
880
881
881 arglist = Py_BuildValue("(n)", arg);
882 arglist = Py_BuildValue("(k)", arg);
882 if (!arglist) {
883 if (!arglist) {
883 return -1;
884 return -1;
884 }
885 }
General Comments 0
You need to be logged in to leave comments. Login now