D6919: interfaces: use triple quotes for Attribute value
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sun Sep 29 19:22:27 UTC 2019
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise the source transformer converts it to bytes and
test-check-interfaces.py complains on Python 3.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6919
AFFECTED FILES
mercurial/interfaces/dirstate.py
CHANGE DETAILS
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():
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list