Patchwork D2121: py3: replace file() with open() in test-mq-missingfiles.t

login
register
mail settings
Submitter phabricator
Date Feb. 11, 2018, 2:04 p.m.
Message ID <5ef03fc92e9659292494f5700b78b5f1@localhost.localdomain>
Download mbox | patch
Permalink /patch/27562/
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 rHGb911995040f9: py3: replace file() with open() in test-mq-missingfiles.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2121?vs=5384&id=5410

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

AFFECTED FILES
  tests/test-mq-missingfiles.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-mq-missingfiles.t b/tests/test-mq-missingfiles.t
--- a/tests/test-mq-missingfiles.t
+++ b/tests/test-mq-missingfiles.t
@@ -9,7 +9,7 @@ 
   > args = sys.argv[2:]
   > assert (len(args) % 2) == 0
   > 
-  > f = file(path, 'wb')
+  > f = open(path, 'wb')
   > for i in xrange(len(args)/2):
   >    count, s = args[2*i:2*i+2]
   >    count = int(count)