Mercurial > public > mercurial-scm > hg
diff mercurial/bundle2.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 | 14b6afc6cb28 |
children | 2d835c42ab41 |
line wrap: on
line diff
--- a/mercurial/bundle2.py Sun Jan 13 20:13:22 2019 -0500 +++ b/mercurial/bundle2.py Wed Feb 20 19:28:51 2019 -0500 @@ -1397,8 +1397,8 @@ assert chunknum == 0, 'Must start with chunk 0' self._chunkindex.append((0, self._tellfp())) else: - assert chunknum < len(self._chunkindex), \ - 'Unknown chunk %d' % chunknum + assert chunknum < len(self._chunkindex), ( + 'Unknown chunk %d' % chunknum) self._seekfp(self._chunkindex[chunknum][1]) pos = self._chunkindex[chunknum][0]