drawdag: use raw strings for docstrings
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 09:35:55 -0800
changeset 41542 8d4ee2d9ffb8
parent 41541 595a67a301ee
child 41543 dddf53473315
drawdag: use raw strings for docstrings Avoids SyntaxWarning for invalid \ escape on Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5827
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