attr: make some docstrings raw strings
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 09:10:07 -0800
changeset 41564 a5493a251ad3
parent 41563 13f7a6a4f0db
child 41565 bf7fb97aecf1
attr: make some docstrings raw strings This avoids a SyntaxWarning in Python 3.8 due to invalid \ escapes. Differential Revision: https://phab.mercurial-scm.org/D5817
mercurial/thirdparty/attr/_make.py
mercurial/thirdparty/attr/filters.py
--- a/mercurial/thirdparty/attr/_make.py	Sun Jan 27 13:37:37 2019 +0900
+++ b/mercurial/thirdparty/attr/_make.py	Mon Feb 04 09:10:07 2019 -0800
@@ -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::
--- a/mercurial/thirdparty/attr/filters.py	Sun Jan 27 13:37:37 2019 +0900
+++ b/mercurial/thirdparty/attr/filters.py	Mon Feb 04 09:10:07 2019 -0800
@@ -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.