mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
python: Support Python3.
This commit is contained in:
parent
76cc80c25d
commit
0dc8938dbf
3 changed files with 21 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue