# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1518349747 -19800 # Node ID acda1977210c451c10b40142b83930d075f8cede # Parent b85b0bbed6de9c962c471ea8cf82affa05451c40 py3: replace file() with open() in test-contrib.t file() is not present in Python 3. Differential Revision: https://phab.mercurial-scm.org/D2134 diff -r b85b0bbed6de -r acda1977210c tests/test-contrib.t --- 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.