D5086: churn: remove redundant round()

Yuya Nishihara yuya at tcha.org
Sat Oct 13 11:33:35 EDT 2018


>      def charnum(count):
> -        return int(round(count * width // maxcount))
> +        return int(count * width // maxcount)

We're doing floating-point division as `maxcount` is float.


More information about the Mercurial-devel mailing list