Patchwork D5817: attr: make some docstrings raw strings

login
register
mail settings
Submitter phabricator
Date Feb. 5, 2019, 2:25 p.m.
Message ID <88d73718b1ae9ec50f71ed31f7b74f1e@localhost.localdomain>
Download mbox | patch
Permalink /patch/38428/
State Not Applicable
Headers show

Comments

phabricator - Feb. 5, 2019, 2:25 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa5493a251ad3: attr: make some docstrings raw strings (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5817?vs=13744&id=13805

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

AFFECTED FILES
  mercurial/thirdparty/attr/_make.py
  mercurial/thirdparty/attr/filters.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: durin42, mercurial-devel

Patch

diff --git a/mercurial/thirdparty/attr/filters.py b/mercurial/thirdparty/attr/filters.py
--- a/mercurial/thirdparty/attr/filters.py
+++ b/mercurial/thirdparty/attr/filters.py
@@ -19,7 +19,7 @@ 
 
 
 def include(*what):
-    """
+    r"""
     Whitelist *what*.
 
     :param what: What to whitelist.
@@ -36,7 +36,7 @@ 
 
 
 def exclude(*what):
-    """
+    r"""
     Blacklist *what*.
 
     :param what: What to blacklist.
diff --git a/mercurial/thirdparty/attr/_make.py b/mercurial/thirdparty/attr/_make.py
--- a/mercurial/thirdparty/attr/_make.py
+++ b/mercurial/thirdparty/attr/_make.py
@@ -56,7 +56,7 @@ 
 def attr(default=NOTHING, validator=None,
          repr=True, cmp=True, hash=None, init=True,
          convert=None, metadata={}):
-    """
+    r"""
     Create a new attribute on a class.
 
     ..  warning::