summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-05-21 16:33:45 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-05-21 16:33:45 (GMT)
commitf9ca76f50027e004ced91ac46578596747ce375f (patch)
tree1338e2a13af6655281a9a601f52be72773d449a6
parentd0793670440f8cf03661597da04062159728d335 (diff)
downloadcpython-f9ca76f50027e004ced91ac46578596747ce375f.zip
cpython-f9ca76f50027e004ced91ac46578596747ce375f.tar.gz
cpython-f9ca76f50027e004ced91ac46578596747ce375f.tar.bz2
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 d29bc17..f3b068c 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))