]> granicus.if.org Git - python/commitdiff
Fix reST label for collections ABCs.
authorÉric Araujo <merwok@netwok.org>
Fri, 3 Jun 2011 17:18:41 +0000 (19:18 +0200)
committerÉric Araujo <merwok@netwok.org>
Fri, 3 Jun 2011 17:18:41 +0000 (19:18 +0200)
The previous markup hijacked the abstract-base-classes glossary entry,
which resulted in the HTML linking to collections.abc when defining the
generic ABC concept.  Now the glossary links to the abc module.

Doc/library/abc.rst
Doc/library/collections.abc.rst
Doc/library/collections.rst

index 2eced4541b42ce1e34516340ba1ad5c3bd3069c5..3e38cb486344a3bfcc91cd694fe37d1921db7b74 100644 (file)
@@ -1,3 +1,5 @@
+.. _abstract-base-classes:
+
 :mod:`abc` --- Abstract Base Classes
 ====================================
 
@@ -12,7 +14,7 @@
 --------------
 
 This module provides the infrastructure for defining an :term:`abstract base
-class` (ABCs) in Python, as outlined in :pep:`3119`; see the PEP for why this
+class` (ABC) in Python, as outlined in :pep:`3119`; see the PEP for why this
 was added to Python. (See also :pep:`3141` and the :mod:`numbers` module
 regarding a type hierarchy for numbers based on ABCs.)
 
index 58354f85711b05af2ab44303e87aa0a183fe7356..1d451d10023735f7efaf97313648ff23184ff4ad 100644 (file)
@@ -23,7 +23,7 @@ example, whether it is hashable or whether it is a mapping.
 .. versionchanged:: 3.3
    Formerly, this module was part of the :mod:`collections` module.
 
-.. _abstract-base-classes:
+.. _collections-abstract-base-classes:
 
 Collections Abstract Base Classes
 ---------------------------------
index f54af32ef56582fb76dd3cf7d141afef7f1a854c..6c9b1e58f9299bb56b94dbd3789b818b322b4146 100644 (file)
@@ -34,7 +34,7 @@ Python's general purpose built-in containers, :class:`dict`, :class:`list`,
 =====================   ====================================================================
 
 .. versionchanged:: 3.3
-   Moved :ref:`abstract-base-classes` to the :mod:`collections.abc` module.
+   Moved :ref:`collections-abstract-base-classes` to the :mod:`collections.abc` module.
    For backwards compatibility, they continue to be visible in this module
    as well.