From: Ian Jackson Date: Sun, 14 Oct 2018 12:44:15 +0000 (+0100) Subject: Escape: Add missing r in regexp literals ('...' => r'...') [3] X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=05743dca6496336b43cf96481b324af1f23fa64a;p=git-buildpackage.git 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 --- 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)