]> arthur.barton.de Git - bup.git/blobdiff - cmd/list-idx-cmd.py
Use absolute_import from the __future__ everywhere
[bup.git] / cmd / list-idx-cmd.py
index 9eb92c177971e474a9fc0307a845a5b8d2b080f6..227d8fe48afccb7195e7bff3b3d841f29fdd765a 100755 (executable)
@@ -4,9 +4,13 @@ bup_python="$(dirname "$0")/bup-python" || exit $?
 exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
+
+from __future__ import absolute_import
 import sys, os
+
 from bup import git, options
-from bup.helpers import *
+from bup.helpers import add_error, handle_ctrl_c, log, qprogress, saved_errors
+
 
 optspec = """
 bup list-idx [--find=<prefix>] <idxfilenames...>
@@ -40,7 +44,7 @@ count = 0
 for name in extra:
     try:
         ix = git.open_idx(name)
-    except git.GitError, e:
+    except git.GitError as e:
         add_error('%s: %s' % (name, e))
         continue
     if len(opt.find) == 40: