]> arthur.barton.de Git - bup.git/blobdiff - cmd/list-idx-cmd.py
vint: remove unnecessary condition
[bup.git] / cmd / list-idx-cmd.py
index 0d5e9aca04a3dc0ffa4f7e0984b7434f4a7edf04..90753de4473fa61327d41f55909c147285dade17 100755 (executable)
@@ -5,10 +5,11 @@ exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
 
+from __future__ import absolute_import, print_function
 import sys, os
 
 from bup import git, options
-from bup.helpers import handle_ctrl_c, log, qprogress, saved_errors
+from bup.helpers import add_error, handle_ctrl_c, log, qprogress, saved_errors
 
 
 optspec = """
@@ -48,13 +49,13 @@ for name in extra:
         continue
     if len(opt.find) == 40:
         if ix.exists(bin):
-            print name, find
+            print(name, find)
     else:
         # slow, exhaustive search
         for _i in ix:
             i = str(_i).encode('hex')
             if i.startswith(find):
-                print name, i
+                print(name, i)
             qprogress('Searching: %d\r' % count)
             count += 1