diff tests/readlink.py @ 29175:7bcfb9090c86

readlink: use print_function
author timeless <timeless@mozdev.org>
date Wed, 11 May 2016 01:56:59 +0000
parents 328739ea70c3
children 6a98f9408a50
line wrap: on
line diff
--- 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)