py3: make second argument of fdopen() a str
authorPulkit Goyal <pulkit@yandex-team.ru>
Tue, 13 Nov 2018 17:41:54 +0300
changeset 40611 5e3b3f88c2e4
parent 40610 13d4ad8d7801
child 40612 3fa4183e7803
py3: make second argument of fdopen() a str # skip-blame as just r'' prefixes Differential Revision: https://phab.mercurial-scm.org/D5260
hgext/remotefilelog/basepack.py
--- 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