X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=cmd%2Fftp-cmd.py;h=a18a93128034a4cc87820a5abcd429a869b80b80;hb=aeafe13a9330e7deca3dc6b9c0496937d904663a;hp=ee2bff1218138d2539b10fb7996c32d8569f04c6;hpb=f76c37383ddb82343e85632e9154547412e7b1ad;p=bup.git diff --git a/cmd/ftp-cmd.py b/cmd/ftp-cmd.py index ee2bff1..a18a931 100755 --- a/cmd/ftp-cmd.py +++ b/cmd/ftp-cmd.py @@ -5,6 +5,7 @@ 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, vfs @@ -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)