]> arthur.barton.de Git - bup.git/blobdiff - cmd/drecurse-cmd.py
metadata: accept only fixed python-xattr in python3
[bup.git] / cmd / drecurse-cmd.py
index 611bfdbb3e89bdc3d93d9900fc3b38fc5cb6343d..a3a7d30aa4a368ce682bc55b83c55f0478bb84b2 100755 (executable)
@@ -5,9 +5,13 @@ exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
 
+from __future__ import absolute_import, print_function
 from os.path import relpath
+import sys
+
 from bup import options, drecurse
-from bup.helpers import *
+from bup.helpers import log, parse_excludes, parse_rx_excludes, saved_errors
+
 
 optspec = """
 bup drecurse <path>
@@ -46,7 +50,7 @@ else:
             pass
     else:
         for (name,st) in it:
-            print name
+            print(name)
 
 if saved_errors:
     log('WARNING: %d errors encountered.\n' % len(saved_errors))