tests: test-archive.t use open() instead of file() for py3 compat
authortimeless <timeless@mozdev.org>
Fri, 06 May 2016 19:16:16 +0000
changeset 29178 0fb2fddd00a3
parent 29177 df6b5c6d252a
child 29179 ce1c6ab15807
tests: test-archive.t use open() instead of file() for py3 compat
tests/test-archive.t
--- a/tests/test-archive.t	Fri May 06 19:15:37 2016 +0000
+++ b/tests/test-archive.t	Fri May 06 19:16:16 2016 +0000
@@ -202,8 +202,8 @@
   >     from md5 import md5
   > import sys
   > f1, f2 = sys.argv[1:3]
-  > h1 = md5(file(f1, 'rb').read()).hexdigest()
-  > h2 = md5(file(f2, 'rb').read()).hexdigest()
+  > h1 = md5(open(f1, 'rb').read()).hexdigest()
+  > h2 = md5(open(f2, 'rb').read()).hexdigest()
   > print(h1 == h2 or "md5 differ: " + repr((h1, h2)))
   > EOF