diff mercurial/thirdparty/attr/_make.py @ 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 765eb17a7eb8
children 89f01ea906ae
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::