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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Fri Oct 5 20:33:38 UTC 2018


pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I remember Yuya saying we need to use bytestr() or '%r' because '%s' was clever.
  Not sure it applies to this or not.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -212,7 +212,7 @@
                 dbg('debug.copies:          rename of: %s\n' % ofctx._path)
             cm[f] = ofctx.path()
         if debug:
-            dbg('debug.copies:          time: %s seconds\n'
+            dbg('debug.copies:          time: %f seconds\n'
                 % (util.timer() - start))
     return cm
 



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


More information about the Mercurial-devel mailing list