# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-11 11:36:04 # Node ID b911995040f93246c04e6edd6b3bd0a10275e629 # Parent 85c94c9d342bd57c0de047151995691ba6d122d8 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 diff --git a/tests/test-mq-missingfiles.t b/tests/test-mq-missingfiles.t --- a/tests/test-mq-missingfiles.t +++ b/tests/test-mq-missingfiles.t @@ -9,7 +9,7 @@ future qrefresh. > 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)