##// END OF EJS Templates
tests: mark test-atomictempfile.py write as binary
tests: mark test-atomictempfile.py write as binary

File last commit:

r29175:7bcfb909 default
r29188:f00f1de1 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)