summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r--Doc/library/importlib.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index d217b0a..292fec1 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -290,12 +290,16 @@ ABC hierarchy::
(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
- source is available (e.g. a built-in module). Raises :exc:`ImportError`
- if the loader cannot find the module specified.
+ 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.
.. method:: is_package(fullname)