]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/cmd/index.py
index: restore print format of octal mode and gitmode
[bup.git] / lib / bup / cmd / index.py
index 9bc4f2a5eb99429117f241c342deab8b53bd9a90..2f8c608118f6da3f9fa507e8fa6df338e9c52054 100644 (file)
@@ -308,8 +308,7 @@ def main(argv):
                 if opt.hash:
                     line += hexlify(ent.sha) + b' '
                 if opt.long:
-                    line += b'%7s %7s ' % (oct(ent.mode).encode('ascii'),
-                                           oct(ent.gitmode).encode('ascii'))
+                    line += f'{ent.mode:07o} {ent.gitmode:07o} '.encode('ascii')
                 out.write(line + (name or b'./') + b'\n')
 
     if opt.check and (opt['print'] or opt.status or opt.modified or opt.update):