Add another profanity.
[python_utils.git] / histogram.py
index cea8b766e3f88a3e197cbdff128539f199fdc83a..c673e161a6318fabeb155e1cdb2a2591abe730e0 100644 (file)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# -*- coding: utf-8 -*-
 
 import math
 from numbers import Number
@@ -81,7 +82,7 @@ class SimpleHistogram(Generic[T]):
                 last_bucket_start = bucket[0]  # beginning of range
             if max_population is None or pop > max_population:
                 max_population = pop  # bucket with max items
-        if len(self.buckets) == 0 or max_population is None:
+        if max_population is None:
             return txt
 
         max_label_width: Optional[int] = None