comparison mercurial/dagparser.py @ 43117:8ff1ecfadcd1

cleanup: join string literals that are already on one line Thanks to Kyle for noticing this and for providing the regular expression to run on the codebase. This patch has been reviewed by the test suite and they approved of it. # skip-blame: fallout from mass reformatting Differential Revision: https://phab.mercurial-scm.org/D7028
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 08 Oct 2019 15:06:18 -0700
parents 687b865b95ad
children 6d001f452bcb
comparison
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
273 while c != b'\0' and i < 10: 273 while c != b'\0' and i < 10:
274 s += c 274 s += c
275 i += 1 275 i += 1
276 c = nextch() 276 c = nextch()
277 raise error.Abort( 277 raise error.Abort(
278 _(b'invalid character in dag description: ' b'%s...') % s 278 _(b'invalid character in dag description: %s...') % s
279 ) 279 )
280 280
281 281
282 def dagtextlines( 282 def dagtextlines(
283 events, 283 events,
379 elif kind == b'#': 379 elif kind == b'#':
380 yield b'#' + data 380 yield b'#' + data
381 yield b'\n' 381 yield b'\n'
382 else: 382 else:
383 raise error.Abort( 383 raise error.Abort(
384 _(b"invalid event type in dag: " b"('%s', '%s')") 384 _(b"invalid event type in dag: ('%s', '%s')")
385 % ( 385 % (
386 stringutil.escapestr(kind), 386 stringutil.escapestr(kind),
387 stringutil.escapestr(data), 387 stringutil.escapestr(data),
388 ) 388 )
389 ) 389 )