chiark
/
gitweb
/
~mdw
/
rsync-backup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c687c90
)
fshash.in: Add parentheses around the argument to `print'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 1 Jun 2024 03:21:07 +0000
(
04:21
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 9 Jun 2024 11:10:59 +0000
(12:10 +0100)
fshash.in
patch
|
blob
|
blame
|
history
diff --git
a/fshash.in
b/fshash.in
index 8fb7317a9a5ea6c8aab6458ff313768e91c468b3..467cddda5fd40967057820cc5430c714b4948782 100644
(file)
--- a/
fshash.in
+++ b/
fshash.in
@@
-455,9
+455,9
@@
class Reporter (object):
if OPTS.compat >= 2: me._vinomap[vino] = inoidx
if h: info = h
else: info = '[%-*s]' % (2*me._hsz - 2, fmt.info())
if OPTS.compat >= 2: me._vinomap[vino] = inoidx
if h: info = h
else: info = '[%-*s]' % (2*me._hsz - 2, fmt.info())
- print
'%s %8s %6s %-12s %-20s %20s %s' % (
- info, vino, fmt.mode(), fmt.owner(),
-
fmt.mtime(), fmt.size(), fmt.name(
))
+ print
('%s %8s %6s %-12s %-20s %20s %s' %
+
(
info, vino, fmt.mode(), fmt.owner(),
+
fmt.mtime(), fmt.size(), fmt.name()
))
###--------------------------------------------------------------------------
### Database clearing from diff files.
###--------------------------------------------------------------------------
### Database clearing from diff files.
@@
-508,7
+508,7
@@
def clear_entry(db, lno, line):
moan("failed to stat `%s': %s" % (name, e.strerror))
if e.errno != E.ENOENT: good = False
else:
moan("failed to stat `%s': %s" % (name, e.strerror))
if e.errno != E.ENOENT: good = False
else:
- print
"Clear cache entry for `%s'" % name
+ print
("Clear cache entry for `%s'" % name)
db.forget(st.st_ino)
return good
db.forget(st.st_ino)
return good
@@
-617,7
+617,7
@@
else:
if OPTS.all:
db.reset()
if OPTS.compat >= 2:
if OPTS.all:
db.reset()
if OPTS.compat >= 2:
- print
"## fshash report format version %d" % OPTS.compat
+ print
("## fshash report format version %d" % OPTS.compat)
rep = Reporter(db)
if OPTS.files:
FMTMAP[OPTS.files](rep.file)
rep = Reporter(db)
if OPTS.files:
FMTMAP[OPTS.files](rep.file)