Simplify example

This commit is contained in:
Raymond Hettinger 2011-05-21 09:37:36 -07:00
parent 39e3528bb2
commit 89cc452f4b

View file

@ -971,10 +971,6 @@ so that the counter remembers the order elements are first encountered::
class OrderedCounter(Counter, OrderedDict):
'Counter that remembers the order elements are first encountered'
def __init__(self, iterable=None, **kwds):
OrderedDict.__init__(self)
Counter.__init__(self, iterable, **kwds)
def __repr__(self):
return '%s(%r)' % (self.__class__.__name__, OrderedDict(self))