]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Simplify example
authorRaymond Hettinger <python@rcn.com>
Sat, 21 May 2011 16:37:36 +0000 (09:37 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 21 May 2011 16:37:36 +0000 (09:37 -0700)
Doc/library/collections.rst

index 6039a1503124f02c393e270ca0d420f21454ae36..f54af32ef56582fb76dd3cf7d141afef7f1a854c 100644 (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))