mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Fix non raw msg pack msg decoding
This commit is contained in:
parent
f193f0f2ec
commit
ce782ff27a
@ -148,7 +148,10 @@ class Serial(object):
|
||||
# that under Python 2 we can still work with older versions
|
||||
# of msgpack.
|
||||
if msgpack.version >= (0, 5, 2):
|
||||
loads_kwargs['raw'] = False
|
||||
if encoding is None:
|
||||
loads_kwargs['raw'] = True
|
||||
else:
|
||||
loads_kwargs['raw'] = False
|
||||
else:
|
||||
loads_kwargs['encoding'] = encoding
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user