diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-10-14 11:17:43 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-10-15 10:15:08 +0200 |
commit | 6b1342253eecd83e514400fccc531205450b13d3 (patch) | |
tree | 44180789a4991c356740dbd2212b548ec35e7368 /gbp/git | |
parent | 497addcb69ddb53199c75d29004239e1cbb8495a (diff) |
Fix flake8's W605 (invalid escape sequence)
See also
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
Diffstat (limited to 'gbp/git')
-rw-r--r-- | gbp/git/repository.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 2ff127d2..617c172f 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -1186,10 +1186,10 @@ class GitRepository(object): fetch_url = None push_urls = [] for line in out.decode().splitlines(): - match = re.match('\s*Fetch\s+URL:\s*(\S.*)', line) + match = re.match(r'\s*Fetch\s+URL:\s*(\S.*)', line) if match: fetch_url = match.group(1) - match = re.match('\s*Push\s+URL:\s*(\S.*)', line) + match = re.match(r'\s*Push\s+URL:\s*(\S.*)', line) if match: push_urls.append(match.group(1)) remotes[remote] = GitRemote(remote, fetch_url, push_urls) |