# HG changeset patch # User Augie Fackler # Date 2017-08-22 21:15:14 # Node ID b4707311d98250308240bed244d6fcc7206c1fae # Parent 266192d4666b71f9689ca4fe34bfb67bc859ece1 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