comparison mercurial/parser.py @ 45942:89a2afe31e82

formating: upgrade to black 20.8b1 This required a couple of small tweaks to un-confuse black, but now it works. Big formatting changes come from: * Dramatically improved collection-splitting logic upstream * Black having a strong (correct IMO) opinion that """ is better than ''' Differential Revision: https://phab.mercurial-scm.org/D9430
author Augie Fackler <raf@durin42.com>
date Fri, 27 Nov 2020 17:03:29 -0500
parents 0fc8b066928a
children d4ba4d51f85f
comparison
equal deleted inserted replaced
45941:346af7687c6f 45942:89a2afe31e82
404 if _matchtree(pattern, tree, placeholder, incompletenodes, matches): 404 if _matchtree(pattern, tree, placeholder, incompletenodes, matches):
405 return matches 405 return matches
406 406
407 407
408 def parseerrordetail(inst): 408 def parseerrordetail(inst):
409 """Compose error message from specified ParseError object 409 """Compose error message from specified ParseError object"""
410 """
411 if inst.location is not None: 410 if inst.location is not None:
412 return _(b'at %d: %s') % (inst.location, inst.message) 411 return _(b'at %d: %s') % (inst.location, inst.message)
413 else: 412 else:
414 return inst.message 413 return inst.message
415 414