[Python-checkins] cpython: Simplify example
raymond.hettinger
python-checkins at python.org
Sat May 21 18:37:44 CEST 2011
http://hg.python.org/cpython/rev/a1f2a6e0a978
changeset: 70256:a1f2a6e0a978
parent: 70254:2be3ffa82293
user: Raymond Hettinger <python at rcn.com>
date: Sat May 21 09:37:36 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
@@ -971,10 +971,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