X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=cmd%2Findex-cmd.py;h=51a43bb660f189f238e39c4f59b338809bba317a;hb=aeafe13a9330e7deca3dc6b9c0496937d904663a;hp=2426f1f5ac8b54fee6e3f6c164c8e6f87a38a0f1;hpb=648dbc13f4f288a199d1890e4731c7edd07a1472;p=bup.git diff --git a/cmd/index-cmd.py b/cmd/index-cmd.py index 2426f1f..51a43bb 100755 --- a/cmd/index-cmd.py +++ b/cmd/index-cmd.py @@ -5,6 +5,7 @@ exec "$bup_python" "$0" ${1+"$@"} """ # end of bup preamble +from __future__ import absolute_import, print_function import sys, stat, time, os, errno, re from bup import metadata, options, git, index, drecurse, hlinkdb @@ -290,7 +291,7 @@ if opt['print'] or opt.status or opt.modified: line += ent.sha.encode('hex') + ' ' if opt.long: line += "%7s %7s " % (oct(ent.mode), oct(ent.gitmode)) - print line + (name or './') + print(line + (name or './')) if opt.check and (opt['print'] or opt.status or opt.modified or opt.update): log('check: starting final check.\n')