diff --git a/parallel_utils/process/monitor.py b/parallel_utils/process/monitor.py index 60389a4..f6516ce 100644 --- a/parallel_utils/process/monitor.py +++ b/parallel_utils/process/monitor.py @@ -92,7 +92,7 @@ def __getstate__(self): def __setstate__(self, state): private = state.pop('private') - p.setstate(private, self) + p.setstate(self, private) self.__dict__ = state def __del__(self): diff --git a/parallel_utils/thread/monitor.py b/parallel_utils/thread/monitor.py index 773aaab..6357380 100644 --- a/parallel_utils/thread/monitor.py +++ b/parallel_utils/thread/monitor.py @@ -93,7 +93,7 @@ def __getstate__(self): def __setstate__(self, state): private = state.pop('private') - p.setstate(private, self) + p.setstate(self, private) self.__dict__ = state def __del__(self): diff --git a/setup.py b/setup.py index 6aa8357..6eb92ff 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ name = 'parallel-utils' # https://www.python.org/dev/peps/pep-0440/#version-scheme -version = '1.1.0' +version = '1.1.1' description = 'This library implements a class Monitor, as defined by Per Brinch Hansen and C.A.R. Hoare, ' \ 'for synchronization and concurrent management of threads and processes in Python. It also provides other ' \ @@ -52,6 +52,8 @@ 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Topic :: Software Development :: Libraries :: Python Modules', ] setuptools.setup(