comparison mercurial/graphmod.py @ 41550: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 3c4b2e880273
children 264a2cbb25d0
comparison
equal deleted inserted replaced
41549:7a90ff8cd14c 41550:fb9e11fdcbba
449 lines.append(_getpaddingline(echars, idx, ncols, edges)) 449 lines.append(_getpaddingline(echars, idx, ncols, edges))
450 450
451 # If 'graphshorten' config, only draw shift_interline 451 # If 'graphshorten' config, only draw shift_interline
452 # when there is any non vertical flow in graph. 452 # when there is any non vertical flow in graph.
453 if state['graphshorten']: 453 if state['graphshorten']:
454 if any(c in '\/' for c in shift_interline if c): 454 if any(c in br'\/' for c in shift_interline if c):
455 lines.append(shift_interline) 455 lines.append(shift_interline)
456 # Else, no 'graphshorten' config so draw shift_interline. 456 # Else, no 'graphshorten' config so draw shift_interline.
457 else: 457 else:
458 lines.append(shift_interline) 458 lines.append(shift_interline)
459 459