py3: replace file() with open() in test-mq-qimport.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 11 Feb 2018 17:04:21 +0530
changeset 36021 85c94c9d342b
parent 36020 bfc9ab6c1bec
child 36022 b911995040f9
py3: replace file() with open() in test-mq-qimport.t file() is not present in Python 3. Differential Revision: https://phab.mercurial-scm.org/D2120
tests/test-mq-qimport.t
--- a/tests/test-mq-qimport.t	Sun Feb 11 17:03:50 2018 +0530
+++ b/tests/test-mq-qimport.t	Sun Feb 11 17:04:21 2018 +0530
@@ -6,7 +6,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)