comparison tests/test-notify.t @ 36394: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
comparison
equal deleted inserted replaced
36393:54f4328a07c2 36394:4bc983568016
419 > [notify] 419 > [notify]
420 > maxsubject = 67 420 > maxsubject = 67
421 > test = False 421 > test = False
422 > mbox = mbox 422 > mbox = mbox
423 > EOF 423 > EOF
424 $ $PYTHON -c 'file("a/a", "ab").write("no" * 500 + "\xd1\x84" + "\n")' 424 $ $PYTHON -c 'open("a/a", "ab").write("no" * 500 + "\xd1\x84" + "\n")'
425 $ hg --cwd a commit -A -m "long line" 425 $ hg --cwd a commit -A -m "long line"
426 $ hg --traceback --cwd b pull ../a 426 $ hg --traceback --cwd b pull ../a
427 pulling from ../a 427 pulling from ../a
428 searching for changes 428 searching for changes
429 adding changesets 429 adding changesets