From b528868249fe415dae51485c46be3f8e08698a1b Mon Sep 17 00:00:00 2001 From: Cyberes Date: Thu, 7 Mar 2024 15:30:48 -0700 Subject: [PATCH] remove typing because soem python doent lik it --- check_systemd_timer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_systemd_timer.py b/check_systemd_timer.py index 07d897c..1b4c5a6 100755 --- a/check_systemd_timer.py +++ b/check_systemd_timer.py @@ -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')