Submitter | Augie Fackler |
---|---|
Date | Aug. 28, 2017, 3:27 p.m. |
Message ID | <dc6d7a28a60abcf771fe.1503934056@augie-macbookpro2.roam.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/23431/ |
State | Accepted |
Headers | show |
Comments
Patch
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 <<EOF > #!$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