gitlab ci

This commit is contained in:
Egor Matveev
2021-11-04 20:52:07 +03:00
parent 6bc184ed3e
commit 6a881b68c8
4 changed files with 20 additions and 34 deletions

View File

@@ -1,28 +0,0 @@
class Method:
def __init__(self, meth, name):
self.meth = meth
self.name = name
def __eq__(self, other):
return self.name == other.name
def execute(self):
self.meth()
class Timer:
methods = []
def push(self, meth):
methods.append(math)
def polling(self):
for i in range(len(self.methods)):
methods[i].execute()
def remove(method_name):
for method in self.methods:
if method.name == method_name:
self.methods.remove(method)
return
raise IndexError("No method in list")