From b832b098ca3e446eb0a918db99efd501e1eab22f Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 10 Nov 2022 21:37:47 -0600 Subject: [PATCH] fix failing tests --- saucebrush/stats.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/saucebrush/stats.py b/saucebrush/stats.py index a416d6c..c8d53ff 100644 --- a/saucebrush/stats.py +++ b/saucebrush/stats.py @@ -1,5 +1,4 @@ from saucebrush.filters import Filter -from saucebrush.utils import FallbackCounter import collections import math @@ -202,10 +201,7 @@ class Histogram(StatsFilter): def __init__(self, field, **kwargs): super(Histogram, self).__init__(field, **kwargs) - if hasattr(collections, "Counter"): - self._counter = collections.Counter() - else: - self._counter = FallbackCounter() + self._counter = collections.Counter() def process_field(self, item): self._counter[self.prep_field(item)] += 1