Mercurial > hg
comparison hgext/remotefilelog/basepack.py @ 40611:5e3b3f88c2e4
py3: make second argument of fdopen() a str
# skip-blame as just r'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D5260
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 13 Nov 2018 17:41:54 +0300 |
parents | 1419f780207c |
children | 9769e0f6ffe0 |
comparison
equal
deleted
inserted
replaced
40610:13d4ad8d7801 | 40611:5e3b3f88c2e4 |
---|---|
371 shallowutil.mkstickygroupdir(ui, packdir) | 371 shallowutil.mkstickygroupdir(ui, packdir) |
372 self.packfp, self.packpath = opener.mkstemp( | 372 self.packfp, self.packpath = opener.mkstemp( |
373 suffix=self.PACKSUFFIX + '-tmp') | 373 suffix=self.PACKSUFFIX + '-tmp') |
374 self.idxfp, self.idxpath = opener.mkstemp( | 374 self.idxfp, self.idxpath = opener.mkstemp( |
375 suffix=self.INDEXSUFFIX + '-tmp') | 375 suffix=self.INDEXSUFFIX + '-tmp') |
376 self.packfp = os.fdopen(self.packfp, 'w+') | 376 self.packfp = os.fdopen(self.packfp, r'w+') |
377 self.idxfp = os.fdopen(self.idxfp, 'w+') | 377 self.idxfp = os.fdopen(self.idxfp, r'w+') |
378 self.sha = hashlib.sha1() | 378 self.sha = hashlib.sha1() |
379 self._closed = False | 379 self._closed = False |
380 | 380 |
381 # The opener provides no way of doing permission fixup on files created | 381 # The opener provides no way of doing permission fixup on files created |
382 # via mkstemp, so we must fix it ourselves. We can probably fix this | 382 # via mkstemp, so we must fix it ourselves. We can probably fix this |