]> arthur.barton.de Git - bup.git/blobdiff - cmd/init-cmd.py
fsck: only specify -t1 when par2 appears to support it
[bup.git] / cmd / init-cmd.py
index e6cc6b51001867aac79494b1501230068a5e1c8d..412ecec1907e2f8b655acc356f1059b4d757419c 100755 (executable)
@@ -4,10 +4,12 @@ bup_python="$(dirname "$0")/bup-python" || exit $?
 exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
+
+from __future__ import absolute_import
 import sys
 
 from bup import git, options, client
-from bup.helpers import *
+from bup.helpers import log, saved_errors
 
 
 optspec = """
@@ -24,7 +26,7 @@ if extra:
 
 try:
     git.init_repo()  # local repo
-except git.GitError, e:
+except git.GitError as e:
     log("bup: error: could not init repository: %s" % e)
     sys.exit(1)