summaryrefslogtreecommitdiff
path: root/msgpack/unpack.h
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-01-12 19:22:36 +0900
committerGitHub <noreply@github.com>2018-01-12 19:22:36 +0900
commit5569a4efcdc913d343eaff4e55c9b19fafde4268 (patch)
tree0c05339319e6f63d06eec2056fa23ccd0d8a3050 /msgpack/unpack.h
parentd9ec8fc905fc9ed37c86700f794adeb883b4f5ea (diff)
downloadmsgpack-python-5569a4efcdc913d343eaff4e55c9b19fafde4268.tar.gz
s/raw_as_bytes/raw/g (#276)
fixes #273
Diffstat (limited to 'msgpack/unpack.h')
-rw-r--r--msgpack/unpack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/msgpack/unpack.h b/msgpack/unpack.h
index 8c2fc46..d7b5e00 100644
--- a/msgpack/unpack.h
+++ b/msgpack/unpack.h
@@ -21,7 +21,7 @@
typedef struct unpack_user {
bool use_list;
- bool raw_as_bytes;
+ bool raw;
bool has_pairs_hook;
PyObject *object_hook;
PyObject *list_hook;
@@ -229,7 +229,7 @@ static inline int unpack_callback_raw(unpack_user* u, const char* b, const char*
if (u->encoding) {
py = PyUnicode_Decode(p, l, u->encoding, u->unicode_errors);
- } else if (u->raw_as_bytes) {
+ } else if (u->raw) {
py = PyBytes_FromStringAndSize(p, l);
} else {
py = PyUnicode_DecodeUTF8(p, l, NULL);