diff --git a/tuned/profiles/functions/functions.py b/tuned/profiles/functions/functions.py index 71bf112..68ce234 100644 --- a/tuned/profiles/functions/functions.py +++ b/tuned/profiles/functions/functions.py @@ -17,32 +17,73 @@ class Functions(): def __init__(self): self._repository = repository.Repository() + self._parse_init() - def sub_func(self, mo): - sorig = mo.string[mo.start():mo.end()] - if mo.lastindex != 1: - return sorig - s = mo.string[mo.start(1):mo.end(1)] - if len(s) == 0: - return sorig - sl = re.split(r'(?