[Python-checkins] r60689 - python/trunk/Lib/_abcoll.py

raymond.hettinger python-checkins at python.org
Sat Feb 9 11:04:19 CET 2008


Author: raymond.hettinger
Date: Sat Feb  9 11:04:19 2008
New Revision: 60689

Modified:
   python/trunk/Lib/_abcoll.py
Log:
Metaclass declaration is inherited

Modified: python/trunk/Lib/_abcoll.py
==============================================================================
--- python/trunk/Lib/_abcoll.py	(original)
+++ python/trunk/Lib/_abcoll.py	Sat Feb  9 11:04:19 2008
@@ -57,7 +57,6 @@
 
 
 class Iterator(Iterable):
-    __metaclass__ = ABCMeta
 
     @abstractmethod
     def __next__(self):
@@ -123,8 +122,6 @@
 
 
 class Set(Sized, Iterable, Container):
-    __metaclass__ = ABCMeta
-
     """A set is a finite, iterable container.
 
     This class provides concrete generic implementations of all
@@ -312,7 +309,6 @@
 
 
 class Mapping(Sized, Iterable, Container):
-    __metaclass__ = ABCMeta
 
     @abstractmethod
     def __getitem__(self, key):
@@ -349,7 +345,6 @@
         return not (self == other)
 
 class MappingView(Sized):
-    __metaclass__ = ABCMeta
 
     def __init__(self, mapping):
         self._mapping = mapping
@@ -469,8 +464,6 @@
 
 
 class Sequence(Sized, Iterable, Container):
-    __metaclass__ = ABCMeta
-
     """All the operations on a read-only sequence.
 
     Concrete subclasses must override __new__ or __init__,


More information about the Python-checkins mailing list