comparison tests/test-largefiles-cache.t @ 48876:42d2b31cee0b

tests: remove from __future__ from inline Python in tests This is no longer required since we require Python 3 and the linter no longer requires these statements. Differential Revision: https://phab.mercurial-scm.org/D12255
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Feb 2022 15:28:44 -0700
parents 1e98f9b5bc71
children 92734603e33e
comparison
equal deleted inserted replaced
48875:6000f5b25c9b 48876:42d2b31cee0b
94 94
95 Portable way to print file permissions: 95 Portable way to print file permissions:
96 96
97 $ cat > ls-l.py <<EOF 97 $ cat > ls-l.py <<EOF
98 > #!$PYTHON 98 > #!$PYTHON
99 > from __future__ import absolute_import, print_function
100 > import os 99 > import os
101 > import sys 100 > import sys
102 > path = sys.argv[1] 101 > path = sys.argv[1]
103 > print('%03o' % (os.lstat(path).st_mode & 0o777)) 102 > print('%03o' % (os.lstat(path).st_mode & 0o777))
104 > EOF 103 > EOF