comparison mercurial/bdiff.c @ 3369:4bad632913d8

python2.5 PyArg_ParseTuple fix Python 2.5 doesn't like it when we mix str objects and the "t#" format in PyArg_ParseTuple. Change it to use "s#". Tested with python 2.3, 2.4 and 2.5.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Thu, 12 Oct 2006 14:04:11 -0300
parents 9061613c1593
children 8c617d48564a
comparison
equal deleted inserted replaced
3368:751df21dad72 3369:4bad632913d8
306 struct hunklist l = {NULL, NULL}; 306 struct hunklist l = {NULL, NULL};
307 struct hunk *h; 307 struct hunk *h;
308 char encode[12], *rb; 308 char encode[12], *rb;
309 int an, bn, len = 0, la, lb; 309 int an, bn, len = 0, la, lb;
310 310
311 if (!PyArg_ParseTuple(args, "t#t#:bdiff", &sa, &la, &sb, &lb)) 311 if (!PyArg_ParseTuple(args, "s#s#:bdiff", &sa, &la, &sb, &lb))
312 return NULL; 312 return NULL;
313 313
314 an = splitlines(sa, la, &al); 314 an = splitlines(sa, la, &al);
315 bn = splitlines(sb, lb, &bl); 315 bn = splitlines(sb, lb, &bl);
316 if (!al || !bl) 316 if (!al || !bl)