I remember Yuya saying we need to use bytestr() or '%r' because '%s' was clever.
Not sure it applies to this or not.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG2e9378f62232: py3: use '%f' for floats instead of '%s'
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
I remember Yuya saying we need to use bytestr() or '%r' because '%s' was clever. Not sure it applies to this or not.
This should be fine since we don't care the prettiness of the debug output.
Last time, I pointed out that '%f' was incompatible since the value was a
version number, and '%f' would print it as '1.000000'.