diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2018-02-05 02:19:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-05 02:19:48 +0900 |
commit | 9fdb83719d3544322f0687a9b1637276c1443eda (patch) | |
tree | 61f62bf5291aeba06129bceb10927b7cf4cff620 /msgpack/unpack.h | |
parent | 618b2cb027e326b315edf5b856ed3b2011c8dad9 (diff) | |
download | msgpack-python-9fdb83719d3544322f0687a9b1637276c1443eda.tar.gz |
Undeprecate unicode_errors (#278)
Diffstat (limited to 'msgpack/unpack.h')
-rw-r--r-- | msgpack/unpack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/unpack.h b/msgpack/unpack.h index d7b5e00..63e5543 100644 --- a/msgpack/unpack.h +++ b/msgpack/unpack.h @@ -232,7 +232,7 @@ static inline int unpack_callback_raw(unpack_user* u, const char* b, const char* } else if (u->raw) { py = PyBytes_FromStringAndSize(p, l); } else { - py = PyUnicode_DecodeUTF8(p, l, NULL); + py = PyUnicode_DecodeUTF8(p, l, u->unicode_errors); } if (!py) return -1; |