diff mercurial/match.py @ 43735:7eb701e355bd

merge with stable
author Yuya Nishihara <yuya@tcha.org>
date Fri, 22 Nov 2019 21:42:04 +0900
parents 5e1b0470cee7 bfbbf48d51e8
children 8b1a9ba375e5
line wrap: on
line diff
--- a/mercurial/match.py	Thu Nov 21 15:46:35 2019 -0500
+++ b/mercurial/match.py	Fri Nov 22 21:42:04 2019 +0900
@@ -543,7 +543,7 @@
 
 
 class patternmatcher(basematcher):
-    """Matches a set of (kind, pat, source) against a 'root' directory.
+    r"""Matches a set of (kind, pat, source) against a 'root' directory.
 
     >>> kindpats = [
     ...     (b're', br'.*\.c$', b''),
@@ -1152,7 +1152,7 @@
 
 
 def patkind(pattern, default=None):
-    '''If pattern is 'kind:pat' with a known kind, return kind.
+    r'''If pattern is 'kind:pat' with a known kind, return kind.
 
     >>> patkind(br're:.*\.c$')
     're'