Skip to content

Commit

Permalink
Merge pull request #9 from maurosilber/master
Browse files Browse the repository at this point in the history
Fixed DeprecationWarning
  • Loading branch information
hgrecco committed Aug 22, 2020
2 parents 882582b + c94f2d9 commit 5891627
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: python

python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"

env:
- EXTRAS="N"
Expand Down
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)
4 changes: 2 additions & 2 deletions serialize/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:license: BSD, see LICENSE for more details.
"""

import collections
from collections.abc import MutableMapping

from . import all

Expand All @@ -23,7 +23,7 @@
raise


class DispatchTable(collections.MutableMapping):
class DispatchTable(MutableMapping):

def __getitem__(self, item):
if item in all.CLASSES:
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ def read(filename):
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
])

0 comments on commit 5891627

Please sign in to comment.