[Python-checkins] cpython (2.7): Simplify example
raymond.hettinger
python-checkins at python.org
Sat May 21 18:40:21 CEST 2011
http://hg.python.org/cpython/rev/cdb91c7a807f
changeset: 70257:cdb91c7a807f
branch: 2.7
parent: 70239:bfceb8c8178a
user: Raymond Hettinger <python at rcn.com>
date: Sat May 21 09:39:57 2011 -0700
summary:
Simplify example
files:
Doc/library/collections.rst | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -862,10 +862,6 @@
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))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list