From d4f57c496b9727eedd8a449bf97deca8fdab7451 Mon Sep 17 00:00:00 2001 From: Mauro Silberberg Date: Mon, 17 Aug 2020 18:37:58 -0300 Subject: [PATCH 1/3] Fixed DeprecationWarning from collections.abc DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working. --- serialize/pickle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serialize/pickle.py b/serialize/pickle.py index 16f1dd9..0ba83e8 100644 --- a/serialize/pickle.py +++ b/serialize/pickle.py @@ -11,7 +11,7 @@ :license: BSD, see LICENSE for more details. """ -import collections +from collections.abc import MutableMapping from . import all @@ -23,7 +23,7 @@ raise -class DispatchTable(collections.MutableMapping): +class DispatchTable(MutableMapping): def __getitem__(self, item): if item in all.CLASSES: From f69d6162fd9af3e5c48d9130e1639d86c42124b8 Mon Sep 17 00:00:00 2001 From: Mauro Silberberg Date: Fri, 21 Aug 2020 13:05:23 -0300 Subject: [PATCH 2/3] Fixed PendingDeprecationWarning in msgpack PendingDeprecationWarning: encoding is deprecated, Use raw=False instead. --- serialize/msgpack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serialize/msgpack.py b/serialize/msgpack.py index 54752b5..0d14fa6 100644 --- a/serialize/msgpack.py +++ b/serialize/msgpack.py @@ -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) From c94f2d940bc5b0a6e57eaf4b8db4c6311ecd5954 Mon Sep 17 00:00:00 2001 From: Mauro Silberberg Date: Sat, 22 Aug 2020 17:57:02 -0300 Subject: [PATCH 3/3] Drop support for Python 3.3 and 3.4 Travis doesn't provide Python 3.3 anymore. Dill requires at least Python 3.5. --- .travis.yml | 4 ++-- setup.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b68c370..8a4b642 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,10 @@ language: python python: - - "3.3" - - "3.4" - "3.5" - "3.6" + - "3.7" + - "3.8" env: - EXTRAS="N" diff --git a/setup.py b/setup.py index 6333b4b..02d0a8f 100644 --- a/setup.py +++ b/setup.py @@ -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', ])