Merge "Stop using encoding='utf-8' with msgpack"

This commit is contained in:
Zuul 2018-06-15 21:55:47 +00:00 committed by Gerrit Code Review
commit fb15d638b1
3 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ mccabe==0.2.1
mock==2.0.0
monotonic==0.6
mox3==0.20.0
msgpack==0.5.1
msgpack==0.5.2
netaddr==0.7.18
netifaces==0.10.4
os-client-config==1.28.0

View File

@ -446,7 +446,7 @@ def load(fp, registry=None):
# here is that the unpack() function (oddly) doesn't seem to take a
# 'ext_hook' parameter..
ext_hook = functools.partial(_unserializer, registry)
return msgpack.Unpacker(fp, ext_hook=ext_hook, encoding='utf-8').unpack()
return msgpack.Unpacker(fp, ext_hook=ext_hook, raw=False).unpack()
def dump(obj, fp, registry=None):
@ -484,4 +484,4 @@ def loads(s, registry=None):
if registry is None:
registry = default_registry
ext_hook = functools.partial(_unserializer, registry)
return msgpack.unpackb(s, ext_hook=ext_hook, encoding='utf-8')
return msgpack.unpackb(s, ext_hook=ext_hook, raw=False)

View File

@ -9,6 +9,6 @@
pbr!=2.1.0,>=2.0.0 # Apache-2.0
six>=1.10.0 # MIT
msgpack>=0.5.1 # Apache-2.0
msgpack>=0.5.2 # Apache-2.0
oslo.utils>=3.33.0 # Apache-2.0
pytz>=2013.6 # MIT