From: Raymond Hettinger Date: Sat, 21 May 2011 16:33:45 +0000 (-0700) Subject: Simplify example X-Git-Tag: v3.2.1rc2~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9ca76f50027e004ced91ac46578596747ce375f;p=thirdparty%2FPython%2Fcpython.git Simplify example --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index d29bc175b444..f3b068c9c001 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -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))