From c489875e0453549248976a2b78181a915384433f Mon Sep 17 00:00:00 2001 From: Pierre Delaunay Date: Mon, 19 Dec 2022 11:43:26 -0500 Subject: [PATCH 1/2] remove python 3.6 special handling --- src/orion/executor/multiprocess_backend.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/orion/executor/multiprocess_backend.py b/src/orion/executor/multiprocess_backend.py index f4cd5614c..d9b8c0b49 100644 --- a/src/orion/executor/multiprocess_backend.py +++ b/src/orion/executor/multiprocess_backend.py @@ -63,10 +63,6 @@ def ready(self): return self.future.ready() def successful(self): - # Python 3.6 raise assertion error - if not self.ready(): - raise ValueError() - return self.future.successful() From b0b179838991af9d828a1364670727c8deb82a4d Mon Sep 17 00:00:00 2001 From: Pierre Delaunay Date: Mon, 19 Dec 2022 11:45:48 -0500 Subject: [PATCH 2/2] Tag 3.7 support code for removal --- src/orion/executor/multiprocess_backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/orion/executor/multiprocess_backend.py b/src/orion/executor/multiprocess_backend.py index d9b8c0b49..03cb557e7 100644 --- a/src/orion/executor/multiprocess_backend.py +++ b/src/orion/executor/multiprocess_backend.py @@ -77,6 +77,7 @@ def Process(*args, **kwds): v = sys.version_info + # 3.7 Support #1046 # < 3.8 use self._ctx # >= 3.8 ctx as an argument if v.major == 3 and v.minor >= 8: