summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rwxr-xr-xapi/examples/getvolfile.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/api/examples/getvolfile.py b/api/examples/getvolfile.py
index 961a89c9808..f1d5761d6b1 100755
--- a/api/examples/getvolfile.py
+++ b/api/examples/getvolfile.py
@@ -1,5 +1,6 @@
#!/usr/bin/python2
+from __future__ import print_function
import ctypes
import ctypes.util
@@ -35,10 +36,10 @@ if __name__ == "__main__":
try:
res = apply(get_volfile, sys.argv[1:3])
except:
- print "fetching volfile failed (volume not started?)"
+ print("fetching volfile failed (volume not started?)")
try:
for line in res.split('\n'):
- print line
+ print(line)
except:
- print "bad return value %s" % res
+ print("bad return value %s" % res)