summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-05-21 09:39:57 -0700
committerRaymond Hettinger <python@rcn.com>2011-05-21 09:39:57 -0700
commit68169df54edbfa43de2f9f09fd76d34cde33774c (patch)
tree5ea3af335a7e1bae26e9b02618deb837789c529a
parent3c8e4143bf8556d52e078e2f18b496afa2389ac3 (diff)
downloadcpython-68169df54edbfa43de2f9f09fd76d34cde33774c.tar.gz
Simplify example
-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 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))