Mercurial > hg
diff tests/drawdag.py @ 41542:8d4ee2d9ffb8
drawdag: use raw strings for docstrings
Avoids SyntaxWarning for invalid \ escape on Python 3.8.
Differential Revision: https://phab.mercurial-scm.org/D5827
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 04 Feb 2019 09:35:55 -0800 |
parents | 9a813e4c8406 |
children | 2e2076c8c25f |
line wrap: on
line diff
--- a/tests/drawdag.py Mon Feb 04 09:34:11 2019 -0800 +++ b/tests/drawdag.py Mon Feb 04 09:35:55 2019 -0800 @@ -322,7 +322,7 @@ v.remove(leaf) def _getcomments(text): - """ + r""" >>> [pycompat.sysstr(s) for s in _getcomments(br''' ... G ... | @@ -341,7 +341,7 @@ @command(b'debugdrawdag', []) def debugdrawdag(ui, repo, **opts): - """read an ASCII graph from stdin and create changesets + r"""read an ASCII graph from stdin and create changesets The ASCII graph is like what :hg:`log -G` outputs, with each `o` replaced to the name of the node. The command will create dummy changesets and local