Mercurial > hg
changeset 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 | 13d4ad8d7801 |
children | 3fa4183e7803 |
files | hgext/remotefilelog/basepack.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/remotefilelog/basepack.py Tue Nov 13 17:41:26 2018 +0300 +++ b/hgext/remotefilelog/basepack.py Tue Nov 13 17:41:54 2018 +0300 @@ -373,8 +373,8 @@ suffix=self.PACKSUFFIX + '-tmp') self.idxfp, self.idxpath = opener.mkstemp( suffix=self.INDEXSUFFIX + '-tmp') - self.packfp = os.fdopen(self.packfp, 'w+') - self.idxfp = os.fdopen(self.idxfp, 'w+') + self.packfp = os.fdopen(self.packfp, r'w+') + self.idxfp = os.fdopen(self.idxfp, r'w+') self.sha = hashlib.sha1() self._closed = False