From: Raymond Hettinger Date: Sat, 21 May 2011 16:39:57 +0000 (-0700) Subject: Simplify example X-Git-Tag: v2.7.2rc1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=691a659ddb5c7b70eb99fc5a6b4373d92685edd4;p=python Simplify example --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 88c4f0f9ee..53e5ff96f8 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -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))