changeset 41536:fb9e11fdcbba

graphmod: use raw string Needed to avoid a SyntaxWarning due to unescaped \ in Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5820
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 04 Feb 2019 09:01:49 -0800
parents 7a90ff8cd14c
children fc09aafd3c36
files mercurial/graphmod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: