summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2017-12-21 21:50:55 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2017-12-21 21:50:55 +0200
commitf6659a1f0c55494dd3f27acd7c09b84d17e914e1 (patch)
treeba695c7ce646e5e6050ef120e16183e49a8687f7
parent79629ad79640fc52ce9a35851978ca5d812a353d (diff)
downloadapscheduler-f6659a1f0c55494dd3f27acd7c09b84d17e914e1.tar.gz
Renamed the base class for the combining triggers
-rw-r--r--apscheduler/triggers/combining.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/apscheduler/triggers/combining.py b/apscheduler/triggers/combining.py
index ff01998..6b64c71 100644
--- a/apscheduler/triggers/combining.py
+++ b/apscheduler/triggers/combining.py
@@ -2,7 +2,7 @@ from apscheduler.triggers.base import BaseTrigger
from apscheduler.util import obj_to_ref, ref_to_obj
-class BaseMultiTrigger(BaseTrigger):
+class BaseCombiningTrigger(BaseTrigger):
__slots__ = 'triggers'
def __init__(self, triggers):
@@ -32,7 +32,7 @@ class BaseMultiTrigger(BaseTrigger):
return '<{}({})>'.format(self.__class__.__name__, self.triggers)
-class AndTrigger(BaseMultiTrigger):
+class AndTrigger(BaseCombiningTrigger):
"""
Always returns the earliest next fire time that all the given triggers can agree on.
The trigger is considered to be finished when any of the given triggers has finished its
@@ -60,7 +60,7 @@ class AndTrigger(BaseMultiTrigger):
return 'and[{}]'.format(', '.join(str(trigger) for trigger in self.triggers))
-class OrTrigger(BaseMultiTrigger):
+class OrTrigger(BaseCombiningTrigger):
"""
Always returns the earliest next fire time produced by any of the given triggers.
The trigger is considered finished when all the given triggers have finished their schedules.