diff options
| author | INADA Naoki <songofacandy@gmail.com> | 2010-09-02 01:29:57 +0900 |
|---|---|---|
| committer | INADA Naoki <songofacandy@gmail.com> | 2010-09-02 01:29:57 +0900 |
| commit | 4a15d8b6d2b69bdc1de0b0a7f643b02e00100e66 (patch) | |
| tree | 6f082211e8fe119cfed523cf2dc13e39657d4cdf /python/msgpack/unpack.h | |
| parent | be6376ee2d58602f2eac6ee6537cbdc8fbc526fe (diff) | |
| download | msgpack-python-4a15d8b6d2b69bdc1de0b0a7f643b02e00100e66.tar.gz | |
python: Support Python3.
Diffstat (limited to 'python/msgpack/unpack.h')
| -rw-r--r-- | python/msgpack/unpack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/msgpack/unpack.h b/python/msgpack/unpack.h index 61a3786..9eb8ce7 100644 --- a/python/msgpack/unpack.h +++ b/python/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; |
