##// END OF EJS Templates
loader: pywatchman appears to already be py3 compatible...
loader: pywatchman appears to already be py3 compatible Our loader was doing some confusing things in pywatchman, but it looks like we shouldn't be using it there anyway.

File last commit:

r29485:6a98f940 default
r32521:942051a2 default
Show More
readlink.py
17 lines | 324 B | text/x-python | PythonLexer
#!/usr/bin/env python
from __future__ import absolute_import, print_function
import errno
import os
import 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)