Skip to content
Snippets Groups Projects
Commit 5e3b3f88c2e4 authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

py3: make second argument of fdopen() a str

# skip-blame as just r'' prefixes

Differential Revision: https://phab.mercurial-scm.org/D5260
parent 13d4ad8d7801
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment