remove typing because soem python doent lik it
This commit is contained in:
parent
650d2fbc3d
commit
b528868249
|
@ -20,7 +20,7 @@ SYSTEMCTL_TIMERS_RE = re.compile(
|
|||
r'^(([A-Za-z]*\s[0-9]{4}-[0-9]{2}-[0-9]{2}\s*[0-9]{2}:[0-9]{2}:[0-9]{2}\s[A-Z]*)|n\/a)\s*((([0-9]*[a-z]*\s)*left)|n\/a)\s*(([A-Za-z]*\s[0-9]{4}-[0-9]{2}-[0-9]{2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\s[A-Z]*)|n\/a)\s*(([0-9A-Za-z\s]*\sago)|n\/a)\s*([A-Za-z\-_]*.timer)\s*(([A-Za-z\-_]*.service)|\s*)')
|
||||
|
||||
|
||||
def get_next_elapse(timer_name) -> tuple[None, Exception] | tuple[dict, None]:
|
||||
def get_next_elapse(timer_name):
|
||||
try:
|
||||
output = subprocess.check_output(["systemctl", "list-timers", "--all"], universal_newlines=True)
|
||||
lines = output.split('\n')
|
||||
|
|
Loading…
Reference in New Issue