Mercurial > public > mercurial-scm > hg-stable
diff tests/test-extdiff.t @ 36067:d83fc41dabf3
py3: replace file() with open() in test-extdiff.t
file() is not present in Python 3.
This patch also adds a b'' prefix to make sure we write bytes in Python 3.
Differential Revision: https://phab.mercurial-scm.org/D2128
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 11 Feb 2018 17:13:11 +0530 |
parents | 3b77d4787c18 |
children | be5a6fe3643a |
line wrap: on
line diff
--- a/tests/test-extdiff.t Sun Feb 11 17:12:28 2018 +0530 +++ b/tests/test-extdiff.t Sun Feb 11 17:13:11 2018 +0530 @@ -252,8 +252,8 @@ > #!$PYTHON > import time > time.sleep(1) # avoid unchanged-timestamp problems - > file('a/a', 'ab').write('edited\n') - > file('a/b', 'ab').write('edited\n') + > open('a/a', 'ab').write(b'edited\n') + > open('a/b', 'ab').write(b'edited\n') > EOT #if execbit