##// END OF EJS Templates
tests: remove unused import from 'f' utility...
tests: remove unused import from 'f' utility It should have been caught by pyflakes.

File last commit:

r29175:7bcfb909 default
r29230:b68af177 default
Show More
readlink.py
15 lines | 295 B | text/x-python | PythonLexer
#!/usr/bin/env python
from __future__ import print_function
import errno, os, sys
for f in sys.argv[1:]:
try:
print(f, '->', os.readlink(f))
except OSError as err:
if err.errno != errno.EINVAL:
raise
print(f, '->', f, 'not a symlink')
sys.exit(0)