summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-05-21 16:37:36 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-05-21 16:37:36 (GMT)
commit89cc452f4b37883b58e8d68b3fca022fcf701cd4 (patch)
treeda9c9164596c5bce0950991810af054886f10fc7 /Doc/library/collections.rst
parent39e3528bb2f203ad3a32b4e5f7185056dccb778b (diff)
downloadcpython-89cc452f4b37883b58e8d68b3fca022fcf701cd4.zip
cpython-89cc452f4b37883b58e8d68b3fca022fcf701cd4.tar.gz
cpython-89cc452f4b37883b58e8d68b3fca022fcf701cd4.tar.bz2
Simplify example
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst4
1 files changed, 0 insertions, 4 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 6039a15..f54af32 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))