Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dagop.py @ 41547:0f64091cc851
global: make some docstrings raw strings
Python 3.8 emits a SyntaxWarning when a str/bytes contains invalid
\ escapes. Various docstrings in our code base contain invalid
\ escapes.
This commit turns those docstrings into raw strings.
Differential Revision: https://phab.mercurial-scm.org/D5816
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 04 Feb 2019 09:07:00 -0800 |
parents | 7e55ca658e4b |
children | 566daffc607d |
line wrap: on
line diff
--- a/mercurial/dagop.py Mon Feb 04 08:54:30 2019 -0800 +++ b/mercurial/dagop.py Mon Feb 04 09:07:00 2019 -0800 @@ -142,7 +142,7 @@ def revancestors(repo, revs, followfirst=False, startdepth=None, stopdepth=None, cutfunc=None): - """Like revlog.ancestors(), but supports additional options, includes + r"""Like revlog.ancestors(), but supports additional options, includes the given revs themselves, and returns a smartset Scan ends at the stopdepth (exlusive) if specified. Revisions found