##// END OF EJS Templates
factor out the url handling from httprepo...
factor out the url handling from httprepo Create url.py to handle all the url handling: - proxy handling - workaround various python bugs - handle username/password embedded in the url

File last commit:

r5683:396c7010 default
r7270:2db33c1a default
Show More
readlink.py
12 lines | 231 B | text/x-python | PythonLexer
#!/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)