graphmod: use raw string
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 09:01:49 -0800
changeset 41536 fb9e11fdcbba
parent 41535 7a90ff8cd14c
child 41537 fc09aafd3c36
graphmod: use raw string Needed to avoid a SyntaxWarning due to unescaped \ in Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5820
mercurial/graphmod.py
--- a/mercurial/graphmod.py	Mon Feb 04 09:00:52 2019 -0800
+++ b/mercurial/graphmod.py	Mon Feb 04 09:01:49 2019 -0800
@@ -451,7 +451,7 @@
     # If 'graphshorten' config, only draw shift_interline
     # when there is any non vertical flow in graph.
     if state['graphshorten']:
-        if any(c in '\/' for c in shift_interline if c):
+        if any(c in br'\/' for c in shift_interline if c):
             lines.append(shift_interline)
     # Else, no 'graphshorten' config so draw shift_interline.
     else: