##// END OF EJS Templates
py3: make doc strings containing deprecated '\.' escape sequence raw strings...
Daniel Ploch -
r44125:bfbbf48d stable
parent child Browse files
Show More
@@ -554,7 +554,7 b' def normalizerootdir(dir, funcname):'
554
554
555
555
556 class patternmatcher(basematcher):
556 class patternmatcher(basematcher):
557 """Matches a set of (kind, pat, source) against a 'root' directory.
557 r"""Matches a set of (kind, pat, source) against a 'root' directory.
558
558
559 >>> kindpats = [
559 >>> kindpats = [
560 ... (b're', br'.*\.c$', b''),
560 ... (b're', br'.*\.c$', b''),
@@ -1172,7 +1172,7 b' class unionmatcher(basematcher):'
1172
1172
1173
1173
1174 def patkind(pattern, default=None):
1174 def patkind(pattern, default=None):
1175 '''If pattern is 'kind:pat' with a known kind, return kind.
1175 r'''If pattern is 'kind:pat' with a known kind, return kind.
1176
1176
1177 >>> patkind(br're:.*\.c$')
1177 >>> patkind(br're:.*\.c$')
1178 're'
1178 're'
General Comments 0
You need to be logged in to leave comments. Login now