tests/readlink.py
changeset 29175 7bcfb9090c86
parent 25660 328739ea70c3
child 29485 6a98f9408a50
--- a/tests/readlink.py	Fri May 06 01:15:07 2016 +0000
+++ b/tests/readlink.py	Wed May 11 01:56:59 2016 +0000
@@ -1,13 +1,15 @@
 #!/usr/bin/env python
 
+from __future__ import print_function
+
 import errno, os, sys
 
 for f in sys.argv[1:]:
     try:
-        print f, '->', os.readlink(f)
+        print(f, '->', os.readlink(f))
     except OSError as err:
         if err.errno != errno.EINVAL:
             raise
-        print f, 'not a symlink'
+        print(f, '->', f, 'not a symlink')
 
 sys.exit(0)