Patchwork D3786: py3: use '%d' for os.stat_result.st_nlink instead of '%s'

login
register
mail settings
Submitter phabricator
Date June 18, 2018, 10:22 a.m.
Message ID <differential-rev-PHID-DREV-fhr4yw5hncdid2fm3ejq-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32247/
State Superseded
Headers show

Comments

phabricator - June 18, 2018, 10:22 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3786

AFFECTED FILES
  tests/f

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/f b/tests/f
--- a/tests/f
+++ b/tests/f
@@ -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: