From patchwork Mon Aug 28 15:27:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [08, of, 10] tests: update test-largefiles-cache to pass our import checker From: Augie Fackler X-Patchwork-Id: 23431 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 28 Aug 2017 11:27:36 -0400 # HG changeset patch # User Augie Fackler # Date 1503436514 14400 # Tue Aug 22 17:15:14 2017 -0400 # Node ID dc6d7a28a60abcf771feb40c86d3d23364f5d815 # Parent d3b8378b515f1986bea3bf1244383b3f6393781e tests: update test-largefiles-cache to pass our import checker diff --git a/tests/test-largefiles-cache.t b/tests/test-largefiles-cache.t --- a/tests/test-largefiles-cache.t +++ b/tests/test-largefiles-cache.t @@ -94,9 +94,11 @@ Portable way to print file permissions: $ cat > ls-l.py < #!$PYTHON - > import sys, os + > from __future__ import absolute_import, print_function + > import os + > import sys > path = sys.argv[1] - > print('%03o' % (os.lstat(path).st_mode & 0777)) + > print('%03o' % (os.lstat(path).st_mode & 0o777)) > EOF $ chmod +x ls-l.py