Mercurial > hg-stable
changeset 43010:5f8b6617e962
interfaces: use triple quotes for Attribute value
Otherwise the source transformer converts it to bytes and
test-check-interfaces.py complains on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D6919
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 29 Sep 2019 12:22:21 -0700 |
parents | f1dffb37f27c |
children | e05c141511dd |
files | mercurial/interfaces/dirstate.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/interfaces/dirstate.py Sun Sep 29 12:19:45 2019 -0700 +++ b/mercurial/interfaces/dirstate.py Sun Sep 29 12:22:21 2019 -0700 @@ -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():