I'm not really sure how this worked before, but something perturbed it
and what I've got in this change I believe is a little tidier. This
fixes test-profile.t on Python 3.
Details
Details
- Reviewers
 - None
 - Group Reviewers
 hg-reviewers - Commits
 - rHG8664fdc1cfb3: statprof: clean up unicode/bytes a little
 
Diff Detail
Diff Detail
- Repository
 - rHG Mercurial
 - Lint
 Automatic diff as part of commit; lint not applicable. - Unit
 Automatic diff as part of commit; unit tests not applicable. 
Event Timeline
Comment Actions
Queued, thanks.
- sitelabel = '%s:%d:%s' % (pycompat.fsencode(site.filename()),
 + sitelabel = '%s:%d:%s' % (site.filename(),
Maybe missing b'' ?
- pycompat.sysbytes(site.function))
 + site.function)
fp.write(b'%6.2f %9.2f %9.2f %s\n' % ( stat.selfpercent(), stat.totalseconds(), stat.selfseconds(), sitelabel))