D2134: py3: replace file() with open() in test-contrib.t

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sun Feb 11 09:05:30 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGacda1977210c: py3: replace file() with open() in test-contrib.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2134?vs=5397&id=5419

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

AFFECTED FILES
  tests/test-contrib.t

CHANGE DETAILS

diff --git a/tests/test-contrib.t b/tests/test-contrib.t
--- a/tests/test-contrib.t
+++ b/tests/test-contrib.t
@@ -201,7 +201,7 @@
 
 binary file
 
-  $ $PYTHON -c "f = file('binary-local', 'w'); f.write('\x00'); f.close()"
+  $ $PYTHON -c "f = open('binary-local', 'w'); f.write('\x00'); f.close()"
   $ cat orig >> binary-local
   $ $PYTHON simplemerge -p binary-local base other
   warning: binary-local looks like a binary file.



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


More information about the Mercurial-devel mailing list