chiark
/
gitweb
/
~ianmdlvl
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d573fb
)
Escape: Add missing r in regexp literals ('...' => r'...') [3]
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 14 Oct 2018 12:44:15 +0000
(13:44 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 14 Oct 2018 14:17:27 +0000
(15:17 +0100)
Detected by flake8, eg
./gbp/deb/git.py:35:6: W605 invalid escape sequence '\)'
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
gbp/deb/git.py
patch
|
blob
|
history
diff --git
a/gbp/deb/git.py
b/gbp/deb/git.py
index 7e87eda02646eb0fe3ed5585d7552fefcf2b8fe5..2e14f534b61a87c69aaf3d7fcacefedad68fdd66 100644
(file)
--- 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<M>[^%])'
- '%(?P<R>([^%]|\\%))+'
- '\)s')
+
r
'%(?P<M>[^%])'
+
r
'%(?P<R>([^%]|\\%))+'
+
r
'\)s')
def __init__(self, *args, **kwargs):
super(DebianGitRepository, self).__init__(*args, **kwargs)