summaryrefslogtreecommitdiff
path: root/msgpack/unpack.h
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2010-09-02 01:29:57 +0900
committerINADA Naoki <songofacandy@gmail.com>2010-09-02 01:29:57 +0900
commit0dc8938dbfff67760834bd97150fee5fdb8e875c (patch)
tree4781af3acd96da2a4c2f9d26672d28a3a34e2170 /msgpack/unpack.h
parent76cc80c25d10d1224f0f16c6a74b531bf452aede (diff)
downloadmsgpack-python-0dc8938dbfff67760834bd97150fee5fdb8e875c.tar.gz
python: Support Python3.
Diffstat (limited to 'msgpack/unpack.h')
-rw-r--r--msgpack/unpack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/unpack.h b/msgpack/unpack.h
index 61a3786..9eb8ce7 100644
--- a/msgpack/unpack.h
+++ b/msgpack/unpack.h
@@ -175,7 +175,7 @@ static inline int template_callback_map_item(unpack_user* u, msgpack_unpack_obje
static inline int template_callback_raw(unpack_user* u, const char* b, const char* p, unsigned int l, msgpack_unpack_object* o)
{
PyObject *py;
- py = PyString_FromStringAndSize(p, l);
+ py = PyBytes_FromStringAndSize(p, l);
if (!py)
return -1;
*o = py;