Mercurial > hg
view tests/readlink.py @ 5762:c2a21fe60994
"C" status code considered harmful, so changed to "=" (issue899)
C means conflict in other SCMs, and = is more intuitive anyway.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 30 Dec 2007 17:45:26 +0100 |
parents | 396c7010b0cd |
children | 08a0f04b56bd |
line wrap: on
line source
#!/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)