D4894: py3: use '%f' for floats instead of '%s'

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Fri Oct 5 21:28:41 EDT 2018


yuja added a comment.


  >   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'.

REPOSITORY
  rHG Mercurial

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

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


More information about the Mercurial-devel mailing list