##// END OF EJS Templates
util: make new timedcmstats class Python 3 compatible
util: make new timedcmstats class Python 3 compatible

File last commit:

r29485:6a98f940 default
r38848:9d49bb11 default
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)