##// END OF EJS Templates
hgweb: move another utility function into the webutil module
hgweb: move another utility function into the webutil module

File last commit:

r5683:396c7010 default
r7311:de9c87fe default
Show More
readlink.py
12 lines | 231 B | text/x-python | PythonLexer
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 #!/usr/bin/env python
import errno, os, sys
for f in sys.argv[1:]:
try:
print f, '->', os.readlink(f)
except OSError, err:
if err.errno != errno.EINVAL: raise
print f, 'not a symlink'
sys.exit(0)