Mercurial > hg
changeset 41564:a5493a251ad3
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
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 04 Feb 2019 09:10:07 -0800 |
parents | 13f7a6a4f0db |
children | bf7fb97aecf1 |
files | mercurial/thirdparty/attr/_make.py mercurial/thirdparty/attr/filters.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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.