Mercurial > hg
comparison tests/readlink.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 396c7010b0cd |
children | 328739ea70c3 |
comparison
equal
deleted
inserted
replaced
10281:e7d3b509af8b | 10282:08a0f04b56bd |
---|---|
4 | 4 |
5 for f in sys.argv[1:]: | 5 for f in sys.argv[1:]: |
6 try: | 6 try: |
7 print f, '->', os.readlink(f) | 7 print f, '->', os.readlink(f) |
8 except OSError, err: | 8 except OSError, err: |
9 if err.errno != errno.EINVAL: raise | 9 if err.errno != errno.EINVAL: |
10 raise | |
10 print f, 'not a symlink' | 11 print f, 'not a symlink' |
11 | 12 |
12 sys.exit(0) | 13 sys.exit(0) |