diff options
| author | Georg Brandl <georg@python.org> | 2009-02-28 21:33:10 (GMT) | 
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-02-28 21:33:10 (GMT) | 
| commit | bcf7bf3833a65018e431c46f49168af88826c531 (patch) | |
| tree | e2d708970fdc09985678d276551ce6898e4859f3 /Lib/abc.py | |
| parent | 68d68520061a5a4aa3437f8c74ba383b2da50280 (diff) | |
| download | cpython-bcf7bf3833a65018e431c46f49168af88826c531.zip cpython-bcf7bf3833a65018e431c46f49168af88826c531.tar.gz cpython-bcf7bf3833a65018e431c46f49168af88826c531.tar.bz2  | |
Fix 3k-style metaclass syntax in docstrings.
Diffstat (limited to 'Lib/abc.py')
| -rw-r--r-- | Lib/abc.py | 9 | 
1 files changed, 6 insertions, 3 deletions
@@ -15,7 +15,8 @@ def abstractmethod(funcobj):      Usage: -        class C(metaclass=ABCMeta): +        class C: +            __metaclass__ = ABCMeta              @abstractmethod              def my_abstract_method(self, ...):                  ... @@ -35,7 +36,8 @@ class abstractproperty(property):      Usage: -        class C(metaclass=ABCMeta): +        class C: +            __metaclass__ = ABCMeta              @abstractproperty              def my_abstract_property(self):                  ... @@ -43,7 +45,8 @@ class abstractproperty(property):      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)  | 
