Mercurial > hg-stable
changeset 36060:b911995040f9
py3: replace file() with open() in test-mq-missingfiles.t
file() is not present in Python 3.
Differential Revision: https://phab.mercurial-scm.org/D2121
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 11 Feb 2018 17:06:04 +0530 |
parents | 85c94c9d342b |
children | adec6374a0b2 |
files | tests/test-mq-missingfiles.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-mq-missingfiles.t Sun Feb 11 17:04:21 2018 +0530 +++ b/tests/test-mq-missingfiles.t Sun Feb 11 17:06:04 2018 +0530 @@ -9,7 +9,7 @@ > args = sys.argv[2:] > assert (len(args) % 2) == 0 > - > f = file(path, 'wb') + > f = open(path, 'wb') > for i in xrange(len(args)/2): > count, s = args[2*i:2*i+2] > count = int(count)