##// END OF EJS Templates
tests: remove output conditionalized on no-py3...
tests: remove output conditionalized on no-py3 I simply did a search for `^.* \(no-py3 !\)\n` and removed all matched lines. There are still some references to no-py3. But these were the simpler ones to match against. Differential Revision: https://phab.mercurial-scm.org/D12253

File last commit:

r46434:c102b704 default
r49729:af0b21d5 default
Show More
readlink.py
17 lines | 325 B | text/x-python | PythonLexer
#!/usr/bin/env python3
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)