X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=cmd%2Fsave-cmd.py;h=bf2877ba240a0ff90c79745c5104217c4c1849ea;hb=aeafe13a9330e7deca3dc6b9c0496937d904663a;hp=91d01ca84912dfa2f0e5ca5a1069f816fc06ede6;hpb=c40b3dd5fd74e72024fbaad3daf5a958aefa1c54;p=bup.git diff --git a/cmd/save-cmd.py b/cmd/save-cmd.py index 91d01ca..bf2877b 100755 --- a/cmd/save-cmd.py +++ b/cmd/save-cmd.py @@ -5,7 +5,7 @@ exec "$bup_python" "$0" ${1+"$@"} """ # end of bup preamble -from __future__ import absolute_import +from __future__ import absolute_import, print_function from errno import EACCES from io import BytesIO import os, sys, stat, time, math @@ -453,14 +453,14 @@ tree = _pop(force_tree = None, dir_metadata = metadata.Metadata() if root_collision else None) if opt.tree: - print tree.encode('hex') + print(tree.encode('hex')) if opt.commit or opt.name: msg = 'bup save\n\nGenerated by command:\n%r\n' % sys.argv userline = '%s <%s@%s>' % (userfullname(), username(), hostname()) commit = w.new_commit(tree, oldref, userline, date, None, userline, date, None, msg) if opt.commit: - print commit.encode('hex') + print(commit.encode('hex')) msr.close() w.close() # must close before we can update the ref