From: Raymond Hettinger Date: Sat, 21 May 2011 16:37:36 +0000 (-0700) Subject: Simplify example X-Git-Tag: v3.3.0a1~2206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89cc452f4b37883b58e8d68b3fca022fcf701cd4;p=thirdparty%2FPython%2Fcpython.git Simplify example --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 6039a1503124..f54af32ef565 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -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))