[Python-checkins] cpython (3.2): Simplify example

raymond.hettinger python-checkins at python.org
Sat May 21 18:35:52 CEST 2011


http://hg.python.org/cpython/rev/0f4fc0d1fe53
changeset:   70255:0f4fc0d1fe53
branch:      3.2
parent:      70253:926078d4e1de
user:        Raymond Hettinger <python at rcn.com>
date:        Sat May 21 09:33:45 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
@@ -889,10 +889,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