]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix markup
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 4 Jan 2008 18:24:41 +0000 (18:24 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 4 Jan 2008 18:24:41 +0000 (18:24 +0000)
Doc/whatsnew/2.6.rst

index 54be1e1cec3bbe3b091d4262643f228a9ac36769..fee298deef6ec2067ae06a6e75a84d85b7261f32 100644 (file)
@@ -503,10 +503,12 @@ assert isinstance([], AppendableSequence)
 @abstractmethod decorator -- you can't instantiate classes w/
 an abstract method.
 
-@abstractproperty decorator
-@abstractproperty
-def readonly(self):
-   return self._x
+::
+
+    @abstractproperty decorator
+    @abstractproperty
+    def readonly(self):
+       return self._x
 
 
 .. seealso::
@@ -1163,7 +1165,7 @@ This section lists previously described changes, and a few
 esoteric bugfixes, that may require changes to your
 code:
 
-* The :method:`__init__` method of :class:`collections.deque`
+* The :meth:`__init__` method of :class:`collections.deque`
   now clears any existing contents of the deque
   before adding elements from the iterable.  This change makes the
   behavior match that of ``list.__init__()``.