Patchwork D7462: py3: make doc strings containing the deprected '\.' escape sequence raw strings

login
register
mail settings
Submitter phabricator
Date Nov. 21, 2019, 1:41 p.m.
Message ID <500b9f1ffaf3a7af6ccaa65bb27ec688@localhost.localdomain>
Download mbox | patch
Permalink /patch/43388/
State Not Applicable
Headers show

Comments

phabricator - Nov. 21, 2019, 1:41 p.m.
Closed by commit rHGbfbbf48d51e8: py3: make doc strings containing deprecated &#039;\.&#039; escape sequence raw strings (authored by dploch).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7462?vs=18252&id=18262

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7462/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7462

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS




To: dploch, #hg-reviewers, dlax, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -554,7 +554,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''),
@@ -1172,7 +1172,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'