# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-06-18 09:55:57 # Node ID 06c85cbd682490189814d5f1b186bc45af5c5351 # Parent a6426dd3210d577c8a86f9c703cba30859920899 py3: use '%d' for os.stat_result.st_nlink instead of '%s' Differential Revision: https://phab.mercurial-scm.org/D3786 diff --git a/tests/f b/tests/f --- a/tests/f +++ b/tests/f @@ -84,7 +84,7 @@ def visit(opts, filenames, outfile): if opts.mode and not islink: facts.append(b'mode=%o' % (stat.st_mode & 0o777)) if opts.links: - facts.append(b'links=%s' % stat.st_nlink) + facts.append(b'links=%d' % stat.st_nlink) if opts.newer: # mtime might be in whole seconds so newer file might be same if stat.st_mtime >= os.stat(opts.newer).st_mtime: