Show More
@@ -1,13 +1,15 b'' | |||||
1 | #!/usr/bin/env python |
|
1 | #!/usr/bin/env python | |
2 |
|
2 | |||
|
3 | from __future__ import print_function | |||
|
4 | ||||
3 | import errno, os, sys |
|
5 | import errno, os, sys | |
4 |
|
6 | |||
5 | for f in sys.argv[1:]: |
|
7 | for f in sys.argv[1:]: | |
6 | try: |
|
8 | try: | |
7 |
print |
|
9 | print(f, '->', os.readlink(f)) | |
8 | except OSError as err: |
|
10 | except OSError as err: | |
9 | if err.errno != errno.EINVAL: |
|
11 | if err.errno != errno.EINVAL: | |
10 | raise |
|
12 | raise | |
11 | print f, 'not a symlink' |
|
13 | print(f, '->', f, 'not a symlink') | |
12 |
|
14 | |||
13 | sys.exit(0) |
|
15 | sys.exit(0) |
@@ -28,7 +28,6 b'' | |||||
28 | tests/heredoctest.py requires print_function |
|
28 | tests/heredoctest.py requires print_function | |
29 | tests/md5sum.py not using absolute_import |
|
29 | tests/md5sum.py not using absolute_import | |
30 | tests/readlink.py not using absolute_import |
|
30 | tests/readlink.py not using absolute_import | |
31 | tests/readlink.py requires print_function |
|
|||
32 | tests/run-tests.py not using absolute_import |
|
31 | tests/run-tests.py not using absolute_import | |
33 | tests/svn-safe-append.py not using absolute_import |
|
32 | tests/svn-safe-append.py not using absolute_import | |
34 | tests/test-atomictempfile.py not using absolute_import |
|
33 | tests/test-atomictempfile.py not using absolute_import | |
@@ -161,6 +160,5 b'' | |||||
161 | mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob) |
|
160 | mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob) | |
162 | mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob) |
|
161 | mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob) | |
163 | mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob) |
|
162 | mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob) | |
164 | tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
|||
165 |
|
163 | |||
166 | #endif |
|
164 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now