D2267: py3: replace file() with open() in transplant.py
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed Feb 14 12:36:11 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2267
AFFECTED FILES
hgext/transplant.py
CHANGE DETAILS
diff --git a/hgext/transplant.py b/hgext/transplant.py
--- a/hgext/transplant.py
+++ b/hgext/transplant.py
@@ -274,7 +274,7 @@
},
onerr=error.Abort, errprefix=_('filter failed'),
blockedtag='transplant_filter')
- user, date, msg = self.parselog(file(headerfile))[1:4]
+ user, date, msg = self.parselog(open(headerfile, 'rb'))[1:4]
finally:
os.unlink(headerfile)
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list