aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-15 18:42:14 +0100
committerGravatar jesopo2019-06-15 18:42:14 +0100
commit8ab4880c5cac3305b4379aafe5bcf1bbd9a8e888 (patch)
tree4f355c36d0f7f3058b2f0338d25c595b52c6477e /src/utils
parentRemove debug yield check (diff)
signature
Change from `yield` checks to a func in `events` that pass up EventErrors
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/__init__.py b/src/utils/__init__.py
index e159bbca..99d289ac 100644
--- a/src/utils/__init__.py
+++ b/src/utils/__init__.py
@@ -188,7 +188,11 @@ def export(setting: str, value: typing.Any):
class MultiCheck(object):
def __init__(self,
requests: typing.List[typing.Tuple[str, typing.List[str]]]):
- self.requests = requests
+ self._requests = requests
+ def to_multi(self):
+ return self
+ def requests(self):
+ return self._requests[:]
class Check(object):
def __init__(self, request: str, *args: str):
self.request = request