Mercurial > public > mercurial-scm > hg
comparison mercurial/minirst.py @ 52638:dc36535a5edc
style: drop extraneous parentheses
These were rewritten by `pyupgrade`.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 06 Jan 2025 14:07:43 -0500 |
parents | f4733654f144 |
children |
comparison
equal
deleted
inserted
replaced
52637:3b6f25190157 | 52638:dc36535a5edc |
---|---|
509 def formatoption(block, width): | 509 def formatoption(block, width): |
510 desc = b' '.join(map(bytes.strip, block[b'lines'])) | 510 desc = b' '.join(map(bytes.strip, block[b'lines'])) |
511 colwidth = encoding.colwidth(block[b'optstr']) | 511 colwidth = encoding.colwidth(block[b'optstr']) |
512 usablewidth = width - 1 | 512 usablewidth = width - 1 |
513 hanging = block[b'optstrwidth'] | 513 hanging = block[b'optstrwidth'] |
514 initindent = b'%s%s ' % (block[b'optstr'], b' ' * ((hanging - colwidth))) | 514 initindent = b'%s%s ' % (block[b'optstr'], b' ' * (hanging - colwidth)) |
515 hangindent = b' ' * (encoding.colwidth(initindent) + 1) | 515 hangindent = b' ' * (encoding.colwidth(initindent) + 1) |
516 return b' %s\n' % ( | 516 return b' %s\n' % ( |
517 stringutil.wrap( | 517 stringutil.wrap( |
518 desc, usablewidth, initindent=initindent, hangindent=hangindent | 518 desc, usablewidth, initindent=initindent, hangindent=hangindent |
519 ) | 519 ) |