# HG changeset patch # User timeless # Date 2016-05-06 19:15:37 # Node ID df6b5c6d252ab39a1ab0afdf00635f2c59ca58d2 # Parent 8c8442523eefac2d53e3f10ff1ebf37f4d3c63c3 tests: test-archive.t use print_function diff --git a/tests/test-archive.t b/tests/test-archive.t --- a/tests/test-archive.t +++ b/tests/test-archive.t @@ -195,6 +195,7 @@ The '-t' should override autodetection > done $ cat > md5comp.py < from __future__ import print_function > try: > from hashlib import md5 > except ImportError: @@ -203,7 +204,7 @@ The '-t' should override autodetection > f1, f2 = sys.argv[1:3] > h1 = md5(file(f1, 'rb').read()).hexdigest() > h2 = md5(file(f2, 'rb').read()).hexdigest() - > print h1 == h2 or "md5 differ: " + repr((h1, h2)) + > print(h1 == h2 or "md5 differ: " + repr((h1, h2))) > EOF archive name is stored in the archive, so create similar archives and @@ -343,8 +344,9 @@ configured as GMT. $ hg -R repo add repo/a $ hg -R repo commit -m '#0' -d '456789012 21600' $ cat > show_mtime.py < from __future__ import print_function > import sys, os - > print int(os.stat(sys.argv[1]).st_mtime) + > print(int(os.stat(sys.argv[1]).st_mtime)) > EOF $ hg -R repo archive --prefix tar-extracted archive.tar