Patchwork D6919: interfaces: use triple quotes for Attribute value

login
register
mail settings
Submitter phabricator
Date Sept. 30, 2019, 12:49 p.m.
Message ID <1e4af2cfe549107a6fe09334eb7942a2@localhost.localdomain>
Download mbox | patch
Permalink /patch/41851/
State Not Applicable
Headers show

Comments

phabricator - Sept. 30, 2019, 12:49 p.m.
Closed by commit rHG5f8b6617e962: interfaces: use triple quotes for Attribute value (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6919?vs=16692&id=16701

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6919/new/

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

AFFECTED FILES
  mercurial/interfaces/dirstate.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/interfaces/dirstate.py b/mercurial/interfaces/dirstate.py
--- a/mercurial/interfaces/dirstate.py
+++ b/mercurial/interfaces/dirstate.py
@@ -22,7 +22,7 @@ 
 
     # TODO: all these private methods and attributes should be made
     # public or removed from the interface.
-    _ignore = interfaceutil.Attribute('Matcher for ignored files.')
+    _ignore = interfaceutil.Attribute("""Matcher for ignored files.""")
 
     def _ignorefiles():
         """Return a list of files containing patterns to ignore."""
@@ -30,8 +30,8 @@ 
     def _ignorefileandline(f):
         "Given a file `f`, return the ignore file and line that ignores it."
 
-    _checklink = interfaceutil.Attribute('Callable for checking symlinks.')
-    _checkexec = interfaceutil.Attribute('Callable for checking exec bits.')
+    _checklink = interfaceutil.Attribute("""Callable for checking symlinks.""")
+    _checkexec = interfaceutil.Attribute("""Callable for checking exec bits.""")
 
     @contextlib.contextmanager
     def parentchange():