drawdag: use raw strings for docstrings
Avoids SyntaxWarning for invalid \ escape on Python 3.8.
Differential Revision: https://phab.mercurial-scm.org/D5827
--- 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