summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-08-15 14:43:58 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-08-15 14:43:58 (GMT)
commit1b00f25bf99d9b7a5f307984f6467258de636d23 (patch)
tree18d19d268ea3a642be447d3f7041211dc40f9379 /Doc/library/importlib.rst
parentf748a3773fd40dd91195fc2fef2cac2f973baaf8 (diff)
downloadcpython-1b00f25bf99d9b7a5f307984f6467258de636d23.zip
cpython-1b00f25bf99d9b7a5f307984f6467258de636d23.tar.gz
cpython-1b00f25bf99d9b7a5f307984f6467258de636d23.tar.bz2
#15543: glossary entry for and 'universal newlines', and links to it.
Patch by Chris Jerdonek.
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r--Doc/library/importlib.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index c9f742a..158e7b4 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -189,10 +189,15 @@ are also provided to help in implementing the core ABCs.
(e.g. built-in module). :exc:`ImportError` is raised if loader cannot
find the requested module.
+ .. index::
+ single: universal newlines; importlib.abc.InspectLoader.get_source method
+
.. method:: get_source(fullname)
An abstract method to return the source of a module. It is returned as
- a text string with universal newlines. Returns ``None`` if no
+ a text string using :term:`universal newlines`, translating all
+ recognized line separators into ``'\n'`` characters.
+ Returns ``None`` if no
source is available (e.g. a built-in module). Raises :exc:`ImportError`
if the loader cannot find the module specified.