summaryrefslogtreecommitdiffstats
path: root/Doc/reference/import.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-11-24 11:39:56 (GMT)
committerGeorg Brandl <georg@python.org>2013-11-24 11:39:56 (GMT)
commit472a65a7104a0bc8851d00605f45fff2e78a058e (patch)
tree386b244dab82879710801ebde31b251f20bf9ab5 /Doc/reference/import.rst
parent08facd200975d8001bf045bab407adf727e6fc9f (diff)
downloadcpython-472a65a7104a0bc8851d00605f45fff2e78a058e.zip
cpython-472a65a7104a0bc8851d00605f45fff2e78a058e.tar.gz
cpython-472a65a7104a0bc8851d00605f45fff2e78a058e.tar.bz2
Fix a few markup problems in the new import doc.
Diffstat (limited to 'Doc/reference/import.rst')
-rw-r--r--Doc/reference/import.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst
index c7b07cd..be79b99 100644
--- a/Doc/reference/import.rst
+++ b/Doc/reference/import.rst
@@ -231,7 +231,7 @@ The import machinery is extensible, so new finders can be added to extend the
range and scope of module searching.
Finders do not actually load modules. If they can find the named module, they
-return a :term:`module spec`, an encapsulation of the module's import-related
+return a :dfn:`module spec`, an encapsulation of the module's import-related
information, which the import machinery then uses when loading the module.
The following sections describe the protocol for finders and loaders in more
@@ -381,7 +381,7 @@ Note the following details:
* After the module is created but before execution, the import machinery
sets the import-related module attributes ("init_module_attrs"), as
- summarized in a `later section <Import-related module attributes>`_.
+ summarized in a :ref:`later section <import-mod-attrs>`.
* Module execution is the key moment of loading in which the module's
namespace gets populated. Execution is entirely delegated to the
@@ -474,6 +474,8 @@ information a module's spec may hold.
.. versionadded:: 3.4
+.. _import-mod-attrs:
+
Import-related module attributes
--------------------------------