From c0a7ff959a2ec5d2bfc40b976e13976a84e73449 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sat, 3 Nov 2018 11:55:43 -0700 Subject: [PATCH] patch: use r'aw' strings Signed-off-by: David Aguilar --- cola/widgets/patch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cola/widgets/patch.py b/cola/widgets/patch.py index 06741ccd..e4f49906 100644 --- a/cola/widgets/patch.py +++ b/cola/widgets/patch.py @@ -249,9 +249,9 @@ def parse_patch(path): def parse(content, commit): """Parse commit details from a patch""" from_rgx = re.compile(r'^From (?P[a-f0-9]{40}) .*$') - author_rgx = re.compile('^From: (?P[^<]+) <(?P[^>]+)>$') - date_rgx = re.compile('^Date: (?P.*)$') - subject_rgx = re.compile('^Subject: (?P.*)$') + author_rgx = re.compile(r'^From: (?P[^<]+) <(?P[^>]+)>$') + date_rgx = re.compile(r'^Date: (?P.*)$') + subject_rgx = re.compile(r'^Subject: (?P.*)$') commit.content = content -- 2.11.4.GIT