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

index d29bc175b444cf8c080bd90a5eb75bcf4cf7e369..f3b068c9c0013ce3999b5ad33e41f865612aa443 100644 (file)
@@ -889,10 +889,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))