D5014: py3: use %d in a few places

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sat Oct 13 04:18:45 UTC 2018


yuja added a comment.


  > - time = str(sample.time) +            time = sample.time stack = sample.stack sites = ['\1'.join([s.path, str(s.lineno), s.function]) for s in stack]
  > - file.write("%s\0%s\n" % (time, '\0'.join(sites))) +            file.write("%d\0%s\n" % (time, '\0'.join(sites)))
  
  I guess `time` is a floating-point value. `b"%r"` can be used in which case.

REPOSITORY
  rHG Mercurial

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

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


More information about the Mercurial-devel mailing list