##// END OF EJS Templates
Support buffer interface in base85 codec
Brendan Cully -
r3332:a5209a1e default
parent child Browse files
Show More
@@ -35,7 +35,7 b' b85encode(PyObject *self, PyObject *args'
35 35 unsigned int acc, val, ch;
36 36 int pad = 0;
37 37
38 if (!PyArg_ParseTuple(args, "s#|i", &text, &len, &pad))
38 if (!PyArg_ParseTuple(args, "t#|i", &text, &len, &pad))
39 39 return NULL;
40 40
41 41 if (pad)
@@ -82,7 +82,7 b' b85decode(PyObject *self, PyObject *args'
82 82 int len, i, j, olen, c, cap;
83 83 unsigned int acc;
84 84
85 if (!PyArg_ParseTuple(args, "s#", &text, &len))
85 if (!PyArg_ParseTuple(args, "t#", &text, &len))
86 86 return NULL;
87 87
88 88 olen = len / 5 * 4;
General Comments 0
You need to be logged in to leave comments. Login now