# HG changeset patch # User Gregory Szorc # Date 1549299709 28800 # Node ID fb9e11fdcbbae220e79a6e77fdda3fc1946c9e0d # Parent 7a90ff8cd14c51c5a0c8cda41e0814e14a25304b graphmod: use raw string Needed to avoid a SyntaxWarning due to unescaped \ in Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5820 diff -r 7a90ff8cd14c -r fb9e11fdcbba 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: