From 6305f6346b7e4a5aa823d80399875aa65b1638d6 Mon Sep 17 00:00:00 2001 From: CrypticDriver <107245892+CrypticDriver@users.noreply.github.com> Date: Mon, 14 Aug 2023 15:33:52 +0800 Subject: [PATCH] Fix entry point iteration on Python 3.9 (#773) --- apscheduler/schedulers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apscheduler/schedulers/base.py b/apscheduler/schedulers/base.py index aba723f48..f751c9551 100644 --- a/apscheduler/schedulers/base.py +++ b/apscheduler/schedulers/base.py @@ -67,7 +67,7 @@ class BaseScheduler(six.with_metaclass(ABCMeta)): .. seealso:: :ref:`scheduler-config` """ # The `group=...` API is only available in the backport, used in <=3.7, and in std>=3.10. - if (3, 8) <= sys.version_info <= (3, 9): + if (3, 8) <= sys.version_info < (3, 10): _trigger_plugins = {ep.name: ep for ep in entry_points()['apscheduler.triggers']} _executor_plugins = {ep.name: ep for ep in entry_points()['apscheduler.executors']} _jobstore_plugins = {ep.name: ep for ep in entry_points()['apscheduler.jobstores']}