Patchwork D2119: py3: replace file() with open() in test-patch-offset.t

login
register
mail settings
Submitter phabricator
Date Feb. 11, 2018, 2:04 p.m.
Message ID <986aee7684de951216de5e8474cdf8e7@localhost.localdomain>
Download mbox | patch
Permalink /patch/27560/
State Not Applicable
Headers show

Comments

phabricator - Feb. 11, 2018, 2:04 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbfc9ab6c1bec: py3: replace file() with open() in test-patch-offset.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2119?vs=5382&id=5408

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

AFFECTED FILES
  tests/test-patch-offset.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-patch-offset.t b/tests/test-patch-offset.t
--- a/tests/test-patch-offset.t
+++ b/tests/test-patch-offset.t
@@ -5,7 +5,7 @@ 
   > path = sys.argv[1]
   > patterns = sys.argv[2:]
   > 
-  > fp = file(path, 'wb')
+  > fp = open(path, 'wb')
   > for pattern in patterns:
   >     count = int(pattern[0:-1])
   >     char = pattern[-1] + '\n'