changeset 36031:acda1977210c

py3: replace file() with open() in test-contrib.t file() is not present in Python 3. Differential Revision: https://phab.mercurial-scm.org/D2134
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 11 Feb 2018 17:19:07 +0530
parents b85b0bbed6de
children f91b7f26c68a
files tests/test-contrib.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-contrib.t	Sun Feb 11 17:14:00 2018 +0530
+++ b/tests/test-contrib.t	Sun Feb 11 17:19:07 2018 +0530
@@ -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.