--- a/incoming.py Mon Apr 13 00:11:33 2020 +0800
+++ b/incoming.py Mon Apr 13 00:25:26 2020 +0800
rest = line[len(meta_prefix):]
- m = re.match('^task: (\w+)$', rest)
+ m = re.match(r'^task: (\w+)$', rest)
- m = re.match('^job failed', rest)
+ m = re.match(r'^job failed', rest)
- m = re.match('^job (started|finished): ([\dT:+-]+)$', rest)
+ m = re.match(r'^job (started|finished): ([\dT:+-]+)$', rest)
if m.group(1) == 'started':
started = parse_timestamp(m.group(2))
finished = parse_timestamp(m.group(2))
- m = re.match('^project URL: (\S+)$', rest)
+ m = re.match(r'^project URL: (\S+)$', rest)
- m = re.match('^commit: (?:(\d+):)?(\w+)$', rest)
+ m = re.match(r'^commit: (?:(\d+):)?(\w+)$', rest)
- m = re.match('^commit branch: (.+)$', rest)
+ m = re.match(r'^commit branch: (.+)$', rest)
- m = re.match('^commit ref names:.* HEAD -> (\S+)(, |$)', rest)
+ m = re.match(r'^commit ref names:.* HEAD -> (\S+)(, |$)', rest)
- m = re.match('^commit date: (.+)$', rest)
+ m = re.match(r'^commit date: (.+)$', rest)
- m = re.match('^commit author: (.+)$', rest)
+ m = re.match(r'^commit author: (.+)$', rest)
- m = re.match('^commit message: (.+)$', rest)
+ m = re.match(r'^commit message: (.+)$', rest)