Mercurial > hg-stable
changeset 38370:06c85cbd6824
py3: use '%d' for os.stat_result.st_nlink instead of '%s'
Differential Revision: https://phab.mercurial-scm.org/D3786
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 18 Jun 2018 15:25:57 +0530 |
parents | a6426dd3210d |
children | bf953d218a91 |
files | tests/f |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/f Mon Jun 18 15:24:17 2018 +0530 +++ b/tests/f Mon Jun 18 15:25:57 2018 +0530 @@ -84,7 +84,7 @@ 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: