durin42 updated this revision to Diff 12090.
durin42 edited the summary of this revision.
durin42 retitled this revision from "churn: remove redundant int() and round()" 
to "churn: remove redundant round()".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5086?vs=12083&id=12090

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

AFFECTED FILES
  hgext/churn.py

CHANGE DETAILS

diff --git a/hgext/churn.py b/hgext/churn.py
--- a/hgext/churn.py
+++ b/hgext/churn.py
@@ -205,7 +205,7 @@
                                     '*' * charnum(sum(count)))
 
     def charnum(count):
-        return int(round(count * width // maxcount))
+        return int(count * width // maxcount)
 
     for name, count in rate:
         ui.write(format(name, count))



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to