From: Mark Wooding Date: Sat, 1 Jun 2024 03:21:07 +0000 (+0100) Subject: fshash.in: Add parentheses around the argument to `print'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/rsync-backup/commitdiff_plain/c8385b233e290105a409572951d845e0da1f4730 fshash.in: Add parentheses around the argument to `print'. --- diff --git a/fshash.in b/fshash.in index 8fb7317..467cddd 100644 --- 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()) - 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. @@ -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: - print "Clear cache entry for `%s'" % name + print("Clear cache entry for `%s'" % name) db.forget(st.st_ino) return good @@ -617,7 +617,7 @@ else: 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)