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:
78e3f7e
)
Escape: Add missing r in regexp literals ('...' => r'...') [2]
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 14 Oct 2018 12:42:21 +0000
(13:42 +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/patch_series.py
patch
|
blob
|
history
diff --git
a/gbp/patch_series.py
b/gbp/patch_series.py
index 47f51357ea1e4af3b7be062e40469af851f0db41..fafbef443111ea43dd7093f71437895ed915f1fa 100644
(file)
--- a/
gbp/patch_series.py
+++ b/
gbp/patch_series.py
@@
-258,8
+258,8
@@
class PatchSeries(list):
"""
A series of L{Patch}es as read from a quilt series file).
"""
- comment_re = re.compile('\s+#.*$')
- level_re = re.compile('-p(?P<level>[0-9]+)')
+ comment_re = re.compile(
r
'\s+#.*$')
+ level_re = re.compile(
r
'-p(?P<level>[0-9]+)')
@classmethod
def read_series_file(cls, seriesfile):