Mercurial > public > mercurial-scm > hg
diff hgext/releasenotes.py @ 41759:aaad36b88298
cleanup: use () to wrap long lines instead of \
This is a little less brittle, and often helps indentation. In a
surprising number of cases the entire cleanup was deleting the \, as
the expression was *already* parenthesized in a workable way.
Differential Revision: https://phab.mercurial-scm.org/D5993
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 20 Feb 2019 19:28:51 -0500 |
parents | bd3f03d8cc9f |
children | 2372284d9457 |
line wrap: on
line diff
--- a/hgext/releasenotes.py Sun Jan 13 20:13:22 2019 -0500 +++ b/hgext/releasenotes.py Wed Feb 20 19:28:51 2019 -0500 @@ -107,8 +107,9 @@ "releasenotes is disabled\n")) for section in other: - existingnotes = converttitled(self.titledforsection(section)) + \ - convertnontitled(self.nontitledforsection(section)) + existingnotes = ( + converttitled(self.titledforsection(section)) + + convertnontitled(self.nontitledforsection(section))) for title, paragraphs in other.titledforsection(section): if self.hastitledinsection(section, title): # TODO prompt for resolution if different and running in