]> arthur.barton.de Git - bup.git/blobdiff - t/data-size
configure: test for functional readline more carefully
[bup.git] / t / data-size
index 0c7a4f9bbf14224c80e7321c4dd5a626fa990e0d..e5068da62043b357bdf8037083fe483ddf60b131 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/sh
 """": # -*-python-*-
-bup_python="$(dirname "$0")/../cmd/bup-python" || exit $?
+bup_python="$(dirname "$0")/../config/bin/python" || exit $?
 exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
 
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 from os.path import getsize, isdir
 from sys import argv, stderr
@@ -15,7 +15,7 @@ def listdir_failure(ex):
     raise ex
 
 def usage():
-    print >> stderr, "Usage: data-size PATH ..."
+    print('Usage: data-size PATH ...', file=sys.stderr)
 
 total = 0
 for path in argv[1:]:
@@ -25,4 +25,4 @@ for path in argv[1:]:
     else:
         total += getsize(path)
 
-print total
+print(total)