]> granicus.if.org Git - python/commitdiff
Simplify example
authorRaymond Hettinger <python@rcn.com>
Sat, 21 May 2011 16:39:57 +0000 (09:39 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 21 May 2011 16:39:57 +0000 (09:39 -0700)
Doc/library/collections.rst

index 88c4f0f9eec1f61931cb6b01d37447bb1545262c..53e5ff96f8dbf0ef8c8c17b45f3db8275200664e 100644 (file)
@@ -862,10 +862,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))