# HG changeset patch # User Gregory Szorc # Date 1549301755 28800 # Node ID 8d4ee2d9ffb8df148091e07fd08d6eefbcde7b61 # Parent 595a67a301ee85adc7c577627bca69139a4eee17 drawdag: use raw strings for docstrings Avoids SyntaxWarning for invalid \ escape on Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5827 diff -r 595a67a301ee -r 8d4ee2d9ffb8 tests/drawdag.py --- 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