diff options
author | Brett Cannon <bcannon@gmail.com> | 2006-06-08 16:23:04 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2006-06-08 16:23:04 (GMT) |
commit | 6ee7d01c059f799c0f52ffe94811507bccc688a2 (patch) | |
tree | c100a18bfb8677e207d0f9bb5cb33ae2c5459601 /Modules/binascii.c | |
parent | 442b49e93820c2ed52192e30929f233a8546457c (diff) | |
download | cpython-6ee7d01c059f799c0f52ffe94811507bccc688a2.zip cpython-6ee7d01c059f799c0f52ffe94811507bccc688a2.tar.gz cpython-6ee7d01c059f799c0f52ffe94811507bccc688a2.tar.bz2 |
Make binascii.hexlify() use s# for its arguments instead of t# to actually
match its documentation stating it accepts any read-only buffer.
Diffstat (limited to 'Modules/binascii.c')
-rw-r--r-- | Modules/binascii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c index 71a9624..3b2c8b2 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -909,7 +909,7 @@ binascii_hexlify(PyObject *self, PyObject *args) char* retbuf; Py_ssize_t i, j; - if (!PyArg_ParseTuple(args, "t#:b2a_hex", &argbuf, &arglen)) + if (!PyArg_ParseTuple(args, "s#:b2a_hex", &argbuf, &arglen)) return NULL; retval = PyString_FromStringAndSize(NULL, arglen*2); |