From 05743dca6496336b43cf96481b324af1f23fa64a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 14 Oct 2018 13:44:15 +0100 Subject: [PATCH] Escape: Add missing r in regexp literals ('...' => r'...') [3] Detected by flake8, eg ./gbp/deb/git.py:35:6: W605 invalid escape sequence '\)' Signed-off-by: Ian Jackson --- gbp/deb/git.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gbp/deb/git.py b/gbp/deb/git.py index 7e87eda..2e14f53 100644 --- a/gbp/deb/git.py +++ b/gbp/deb/git.py @@ -33,9 +33,9 @@ class DebianGitRepository(PkgGitRepository): """A git repository that holds the source of a Debian package""" version_mangle_re = (r'%\(version' - '%(?P[^%])' - '%(?P([^%]|\\%))+' - '\)s') + r'%(?P[^%])' + r'%(?P([^%]|\\%))+' + r'\)s') def __init__(self, *args, **kwargs): super(DebianGitRepository, self).__init__(*args, **kwargs) -- 2.30.2