Mercurial > public > mercurial-scm > hg-stable
diff tests/test-notify.t @ 36424:4bc983568016
py3: replace file() with open()
file() is not present in Python 3.
Differential Revision: https://phab.mercurial-scm.org/D2417
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 24 Feb 2018 16:07:45 +0530 |
parents | 4441705b7111 |
children | a4cac7b0ea4f |
line wrap: on
line diff
--- a/tests/test-notify.t Sat Feb 24 16:06:21 2018 +0530 +++ b/tests/test-notify.t Sat Feb 24 16:07:45 2018 +0530 @@ -421,7 +421,7 @@ > test = False > mbox = mbox > EOF - $ $PYTHON -c 'file("a/a", "ab").write("no" * 500 + "\xd1\x84" + "\n")' + $ $PYTHON -c 'open("a/a", "ab").write("no" * 500 + "\xd1\x84" + "\n")' $ hg --cwd a commit -A -m "long line" $ hg --traceback --cwd b pull ../a pulling from ../a