]> arthur.barton.de Git - bup.git/blobdiff - cmd/version-cmd.py
vint: remove unnecessary condition
[bup.git] / cmd / version-cmd.py
index cfde72c29689ad119fc79d4382f0541f980da6f4..f7555a8aeaef8078d617cc41c1b7df089139cc46 100755 (executable)
@@ -4,7 +4,10 @@ bup_python="$(dirname "$0")/bup-python" || exit $?
 exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
+
+from __future__ import absolute_import, print_function
 import re, sys
+
 from bup import options
 from bup import version
 
@@ -55,8 +58,8 @@ def version_tag():
 
 
 if opt.date:
-    print version_date()
+    print(version_date())
 elif opt.commit:
-    print version_commit()
+    print(version_commit())
 else:
-    print version_tag()
+    print(version_tag())