Commits

Philip Jenvey committed 34bbeb0

2.3 compat.

  • Participants
  • Parent commits 995fb94

Comments (0)

Files changed (1)

File webhelpers/containers.py

         data.sort()
         return data
 
-    @classmethod
+    #@classmethod
     def correlate(class_, iterable):
         """Build a Counter from an iterable in one step.
 
         for elm in iterable:
             counter(elm)
         return counter
+    correlate = classmethod(correlate)
 
 
 class Accumulator(object):
     def __call__(self, key, value):
         self.result[key].append(value)
 
-    @classmethod
+    #@classmethod
     def correlate(class_, iterable, key):
         """Correlate several items into an Accumulator in one step.
 
             k = key(v)
             accumulator(k, v)
         return accumulator
+    correlate = classmethod(correlate)
 
 class UniqueAccumulator(object):
     """Accumulate a dict of unique values for each key.