This is an archive of the discontinued Mercurial Phabricator instance.

py3: use "%f" for floats instead of "%s"
ClosedPublic

Authored by pulkit on Sep 14 2018, 5:42 PM.

Details

Summary

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

pulkit created this revision.Sep 14 2018, 5:42 PM
This revision was automatically updated to reflect the committed changes.
yuja added a subscriber: yuja.Sep 14 2018, 8:11 PM
self.automatestdio = True
  • self.ui.debug("mtn automate version %s - using automate stdio\n" %

+ self.ui.debug("mtn automate version %f - using automate stdio\n" %

version)

'%s' had a cleverness that the shortest accurate form is computed.
We'll have to use bytestr() or '%r' instead.