]> arthur.barton.de Git - bup.git/blobdiff - cmd/ftp-cmd.py
Replace remaining print statements with print function
[bup.git] / cmd / ftp-cmd.py
index 5aced05f47b4a0e0552042af83bbaaa3729a6eec..a18a93128034a4cc87820a5abcd429a869b80b80 100755 (executable)
@@ -5,9 +5,10 @@ exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
 
+from __future__ import absolute_import, print_function
 import sys, os, stat, fnmatch
 
-from bup import options, git, shquote, ls, vfs2 as vfs
+from bup import options, git, shquote, ls, vfs
 from bup.helpers import chunkyreader, handle_ctrl_c, log
 from bup.repo import LocalRepo
 
@@ -38,7 +39,7 @@ def inputiter():
             try:
                 yield raw_input('bup> ')
             except EOFError:
-                print ''  # Clear the line for the terminal's next prompt
+                print()  # Clear the line for the terminal's next prompt
                 break
     else:
         for line in sys.stdin:
@@ -189,7 +190,7 @@ for line in lines:
         elif cmd == 'pwd':
             if len(pwd) == 1:
                 sys.stdout.write('/')
-            print '/'.join(name for name, item in pwd)
+            print('/'.join(name for name, item in pwd))
         elif cmd == 'cat':
             for parm in words[1:]:
                 res = vfs.resolve(repo, parm, parent=pwd)