X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=histogram.py;fp=histogram.py;h=a899fe9c60cde770eda49dcdd1dade1790e9ec08;hb=e6f32fdd9b373dfcd100c7accb41f57d83c2f0a1;hp=4aa47490122481852ae03e264795509a8794e54e;hpb=36fea7f15ed17150691b5b3ead75450e575229ef;p=python_utils.git diff --git a/histogram.py b/histogram.py index 4aa4749..a899fe9 100644 --- a/histogram.py +++ b/histogram.py @@ -94,11 +94,7 @@ class SimpleHistogram(Generic[T]): right_end="", ) label = f'{label_formatter}..{label_formatter}' % (start, end) - txt += ( - f'{label:20}: ' - + bar - + f"({pop/self.count*100.0:5.2f}% n={pop})\n" - ) + txt += f'{label:20}: ' + bar + f"({pop/self.count*100.0:5.2f}% n={pop})\n" if start == last_bucket_start: break return txt