Skip to content

Commit

Permalink
Merge pull request #143 from aio-libs/upgrademsgpack
Browse files Browse the repository at this point in the history
update msgpack and fix DeprecationWarnings
  • Loading branch information
JelleZijlstra committed Jul 6, 2018
2 parents 5691b93 + 482ba4b commit 9be792e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions aiozmq/rpc/packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def __init__(self, *, translation_table=None):
self._unpack_cache[code] = unpacker

def packb(self, data):
return packb(data, encoding='utf-8', use_bin_type=True,
return packb(data, use_bin_type=True,
default=self.ext_type_pack_hook)

def unpackb(self, packed):
return unpackb(packed, use_list=False, encoding='utf-8',
return unpackb(packed, use_list=False, raw=False,
ext_hook=self.ext_type_unpack_hook)

def ext_type_pack_hook(self, obj, _sentinel=object()):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
msgpack-python>=0.4.2
msgpack>=0.5.0
pycodestyle>=2.4.0
pyflakes>=0.8.1
pyzmq>=14.2.0
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
else:
raise RuntimeError("aiozmq doesn't support Python earlier than 3.3")

tests_require = install_requires + ['msgpack-python>=0.4.0']
tests_require = install_requires + ['msgpack>=0.5.0']

extras_require = {'rpc': ['msgpack-python>=0.4.0']}
extras_require = {'rpc': ['msgpack>=0.5.0']}


def read(f):
Expand Down

0 comments on commit 9be792e

Please sign in to comment.