##// END OF EJS Templates
merge default into stable for 3.9 code freeze
merge default into stable for 3.9 code freeze

File last commit:

r29485:6a98f940 default
r29605:519bb4f9 merge 3.9-rc stable
Show More
readlink.py
17 lines | 324 B | text/x-python | PythonLexer
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 #!/usr/bin/env python
Pulkit Goyal
py3: make files use absolute_import and print_function...
r29485 from __future__ import absolute_import, print_function
timeless
readlink: use print_function
r29175
Pulkit Goyal
py3: make files use absolute_import and print_function...
r29485 import errno
import os
import sys
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683
for f in sys.argv[1:]:
try:
timeless
readlink: use print_function
r29175 print(f, '->', os.readlink(f))
Gregory Szorc
global: mass rewrite to use modern exception syntax...
r25660 except OSError as err:
Matt Mackall
many, many trivial check-code fixups
r10282 if err.errno != errno.EINVAL:
raise
timeless
readlink: use print_function
r29175 print(f, '->', f, 'not a symlink')
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683
sys.exit(0)