Patchwork D2267: py3: replace file() with open() in transplant.py

login
register
mail settings
Submitter phabricator
Date Feb. 14, 2018, 1:43 p.m.
Message ID <5146c0e98438e4c8d49dbb9c8050e291@localhost.localdomain>
Download mbox | patch
Permalink /patch/27920/
State Not Applicable
Headers show

Comments

phabricator - Feb. 14, 2018, 1:43 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2f309b8846cf: py3: replace file() with open() in transplant.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2267?vs=5707&id=5721

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

AFFECTED FILES
  hgext/transplant.py

CHANGE DETAILS




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

Patch

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)