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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Nov 13 13:49:31 EST 2018


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

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
 



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


More information about the Mercurial-devel mailing list