##// END OF EJS Templates
tests: test-archive.t use open() instead of file() for py3 compat
timeless -
r29178:0fb2fddd default
parent child Browse files
Show More
@@ -202,8 +202,8 b" The '-t' should override autodetection"
202 > from md5 import md5
202 > from md5 import md5
203 > import sys
203 > import sys
204 > f1, f2 = sys.argv[1:3]
204 > f1, f2 = sys.argv[1:3]
205 > h1 = md5(file(f1, 'rb').read()).hexdigest()
205 > h1 = md5(open(f1, 'rb').read()).hexdigest()
206 > h2 = md5(file(f2, 'rb').read()).hexdigest()
206 > h2 = md5(open(f2, 'rb').read()).hexdigest()
207 > print(h1 == h2 or "md5 differ: " + repr((h1, h2)))
207 > print(h1 == h2 or "md5 differ: " + repr((h1, h2)))
208 > EOF
208 > EOF
209
209
General Comments 0
You need to be logged in to leave comments. Login now