Patchwork D5260: py3: make second argument of fdopen() a str

login
register
mail settings
Submitter phabricator
Date Nov. 13, 2018, 6:49 p.m.
Message ID <34b6d0598df6e0e6896179cba73c849e@localhost.localdomain>
Download mbox | patch
Permalink /patch/36552/
State Not Applicable
Headers show

Comments

phabricator - Nov. 13, 2018, 6:49 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5e3b3f88c2e4: py3: make second argument of fdopen() a str (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5260?vs=12517&id=12523

REVISION DETAIL
  https://phab.mercurial-scm.org/D5260

AFFECTED FILES
  hgext/remotefilelog/basepack.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/remotefilelog/basepack.py b/hgext/remotefilelog/basepack.py
--- a/hgext/remotefilelog/basepack.py
+++ b/hgext/remotefilelog/basepack.py
@@ -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