comparison 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
comparison
equal deleted inserted replaced
41758:15d3facfa40a 41759:aaad36b88298
1395 '''seek to specified chunk and start yielding data''' 1395 '''seek to specified chunk and start yielding data'''
1396 if len(self._chunkindex) == 0: 1396 if len(self._chunkindex) == 0:
1397 assert chunknum == 0, 'Must start with chunk 0' 1397 assert chunknum == 0, 'Must start with chunk 0'
1398 self._chunkindex.append((0, self._tellfp())) 1398 self._chunkindex.append((0, self._tellfp()))
1399 else: 1399 else:
1400 assert chunknum < len(self._chunkindex), \ 1400 assert chunknum < len(self._chunkindex), (
1401 'Unknown chunk %d' % chunknum 1401 'Unknown chunk %d' % chunknum)
1402 self._seekfp(self._chunkindex[chunknum][1]) 1402 self._seekfp(self._chunkindex[chunknum][1])
1403 1403
1404 pos = self._chunkindex[chunknum][0] 1404 pos = self._chunkindex[chunknum][0]
1405 1405
1406 for chunk in decodepayloadchunks(self.ui, self._fp): 1406 for chunk in decodepayloadchunks(self.ui, self._fp):