mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
Closes: https://bugs.gentoo.org/909878 Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35668 Signed-off-by: Michał Górny <mgorny@gentoo.org>
24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
# https://github.com/gregorg/chkcrontab/pull/1
|
|
diff --git a/chkcrontab_lib.py b/chkcrontab_lib.py
|
|
index 57a7c1f..6334a77 100755
|
|
--- a/chkcrontab_lib.py
|
|
+++ b/chkcrontab_lib.py
|
|
@@ -822,12 +822,12 @@ def ParseLine(self, line, options ):
|
|
Returns:
|
|
A CronLine* class (must have a ValidateAndLog method).
|
|
"""
|
|
- chkcrontab_cmd = re.compile('##*\s*chkcrontab:\s*(.*)=(.*)')
|
|
- assignment_line_re = re.compile('[a-zA-Z_][a-zA-Z0-9_]*\s*=(.*)')
|
|
- at_line_re = re.compile('@(\S+)\s+(\S+)\s+(.*)')
|
|
- cron_time_field_re = '[\*0-9a-zA-Z,/-]+'
|
|
+ chkcrontab_cmd = re.compile(r'##*\s*chkcrontab:\s*(.*)=(.*)')
|
|
+ assignment_line_re = re.compile(r'[a-zA-Z_][a-zA-Z0-9_]*\s*=(.*)')
|
|
+ at_line_re = re.compile(r'@(\S+)\s+(\S+)\s+(.*)')
|
|
+ cron_time_field_re = r'[\*0-9a-zA-Z,/-]+'
|
|
time_field_job_line_re = re.compile(
|
|
- '^\s*(%s)\s+(%s)\s+(%s)\s+(%s)\s+(%s)\s+(\S+)\s+(.*)' %
|
|
+ r'^\s*(%s)\s+(%s)\s+(%s)\s+(%s)\s+(%s)\s+(\S+)\s+(.*)' %
|
|
(cron_time_field_re, cron_time_field_re, cron_time_field_re,
|
|
cron_time_field_re, cron_time_field_re))
|
|
|