Mercurial > hg
view tests/readlink.py @ 20337:a789213c8a38 stable
i18n-de: updated po file with 427d672c0e4e
Do this in a separate patch for easier reviewing of the translation patch.
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Wed, 22 Jan 2014 16:32:53 +0100 |
parents | 08a0f04b56bd |
children | 328739ea70c3 |
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)