# HG changeset patch # User timeless # Date 2016-05-06 19:16:16 # Node ID 0fb2fddd00a3a8dddf4d2ad137d7246d3369a60e # Parent df6b5c6d252ab39a1ab0afdf00635f2c59ca58d2 tests: test-archive.t use open() instead of file() for py3 compat diff --git a/tests/test-archive.t b/tests/test-archive.t --- a/tests/test-archive.t +++ b/tests/test-archive.t @@ -202,8 +202,8 @@ The '-t' should override autodetection > 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