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
--- 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.