[Python-checkins] r70080 - in python/branches/release26-maint: Lib/abc.py

georg.brandl python-checkins at python.org
Sat Feb 28 22:35:59 CET 2009


Author: georg.brandl
Date: Sat Feb 28 22:35:59 2009
New Revision: 70080

Log:
Merged revisions 70078 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70078 | georg.brandl | 2009-02-28 22:33:10 +0100 (Sa, 28 Feb 2009) | 2 lines
  
  Fix 3k-style metaclass syntax in docstrings.
........


Modified:
   python/branches/release26-maint/   (props changed)
   python/branches/release26-maint/Lib/abc.py

Modified: python/branches/release26-maint/Lib/abc.py
==============================================================================
--- python/branches/release26-maint/Lib/abc.py	(original)
+++ python/branches/release26-maint/Lib/abc.py	Sat Feb 28 22:35:59 2009
@@ -15,7 +15,8 @@
 
     Usage:
 
-        class C(metaclass=ABCMeta):
+        class C:
+            __metaclass__ = ABCMeta
             @abstractmethod
             def my_abstract_method(self, ...):
                 ...
@@ -35,7 +36,8 @@
 
     Usage:
 
-        class C(metaclass=ABCMeta):
+        class C:
+            __metaclass__ = ABCMeta
             @abstractproperty
             def my_abstract_property(self):
                 ...
@@ -43,7 +45,8 @@
     This defines a read-only property; you can also define a read-write
     abstract property using the 'long' form of property declaration:
 
-        class C(metaclass=ABCMeta):
+        class C:
+            __metaclass__ = ABCMeta
             def getx(self): ...
             def setx(self, value): ...
             x = abstractproperty(getx, setx)


More information about the Python-checkins mailing list