Skip to content

Commit

Permalink
Fixed PendingDeprecationWarning in msgpack
Browse files Browse the repository at this point in the history
PendingDeprecationWarning: encoding is deprecated, Use raw=False instead.
  • Loading branch information
maurosilber committed Aug 22, 2020
1 parent d4f57c4 commit f69d616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serialize/msgpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def dumps(obj):


def loads(content):
return msgpack.unpackb(content, object_hook=all.decode, encoding='utf-8')
return msgpack.unpackb(content, object_hook=all.decode, raw=False)

all.register_format('msgpack', dumps, loads)

0 comments on commit f69d616

Please sign in to comment.