##// END OF EJS Templates
python2.5 PyArg_ParseTuple fix...
Alexis S. L. Carvalho -
r3369:4bad6329 default
parent child Browse files
Show More
@@ -35,7 +35,7 b' b85encode(PyObject *self, PyObject *args'
35 unsigned int acc, val, ch;
35 unsigned int acc, val, ch;
36 int pad = 0;
36 int pad = 0;
37
37
38 if (!PyArg_ParseTuple(args, "t#|i", &text, &len, &pad))
38 if (!PyArg_ParseTuple(args, "s#|i", &text, &len, &pad))
39 return NULL;
39 return NULL;
40
40
41 if (pad)
41 if (pad)
@@ -82,7 +82,7 b' b85decode(PyObject *self, PyObject *args'
82 int len, i, j, olen, c, cap;
82 int len, i, j, olen, c, cap;
83 unsigned int acc;
83 unsigned int acc;
84
84
85 if (!PyArg_ParseTuple(args, "t#", &text, &len))
85 if (!PyArg_ParseTuple(args, "s#", &text, &len))
86 return NULL;
86 return NULL;
87
87
88 olen = len / 5 * 4;
88 olen = len / 5 * 4;
@@ -308,7 +308,7 b' static PyObject *bdiff(PyObject *self, P'
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);
General Comments 0
You need to be logged in to leave comments. Login now