Commit 503dccb1 authored by Jens Vagelpohl's avatar Jens Vagelpohl

- prevent deprecation warning and move to latest msgpack supporting Python 2

parent 763ebc9d
...@@ -35,7 +35,7 @@ tests_require = [ ...@@ -35,7 +35,7 @@ tests_require = [
'manuel', 'manuel',
'random2', 'random2',
'mock', 'mock',
'msgpack < 0.6', 'msgpack < 1',
'zope.testrunner', 'zope.testrunner',
] ]
......
...@@ -66,7 +66,7 @@ def decoder(protocol): ...@@ -66,7 +66,7 @@ def decoder(protocol):
from msgpack import unpackb from msgpack import unpackb
def msgpack_decode(data): def msgpack_decode(data):
"""Decodes msg and returns its parts""" """Decodes msg and returns its parts"""
return unpackb(data, encoding='utf-8', use_list=False) return unpackb(data, raw=False, use_list=False)
return msgpack_decode return msgpack_decode
else: else:
assert protocol[:1] == b'Z' assert protocol[:1] == b'Z'
......
...@@ -21,7 +21,7 @@ deps = ...@@ -21,7 +21,7 @@ deps =
zope.testing zope.testing
zope.testrunner zope.testrunner
mock mock
msgpack <0.6 msgpack < 1
# ZopeUndo is needed as soft-dependency for a regression test # ZopeUndo is needed as soft-dependency for a regression test
ZopeUndo ZopeUndo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment