Commit 89cc452f authored by Raymond Hettinger's avatar Raymond Hettinger

Simplify example

parent 39e3528b
...@@ -971,10 +971,6 @@ so that the counter remembers the order elements are first encountered:: ...@@ -971,10 +971,6 @@ so that the counter remembers the order elements are first encountered::
class OrderedCounter(Counter, OrderedDict): class OrderedCounter(Counter, OrderedDict):
'Counter that remembers the order elements are first encountered' '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): def __repr__(self):
return '%s(%r)' % (self.__class__.__name__, OrderedDict(self)) return '%s(%r)' % (self.__class__.__name__, OrderedDict(self))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment