mirror of https://github.com/python/cpython
Use correct markup in zipimport.rst. Patch by Sara Magliacane.
This commit is contained in:
parent
70797194ab
commit
54cc5fd72d
|
@ -9,11 +9,11 @@
|
||||||
This module adds the ability to import Python modules (:file:`\*.py`,
|
This module adds the ability to import Python modules (:file:`\*.py`,
|
||||||
:file:`\*.py[co]`) and packages from ZIP-format archives. It is usually not
|
:file:`\*.py[co]`) and packages from ZIP-format archives. It is usually not
|
||||||
needed to use the :mod:`zipimport` module explicitly; it is automatically used
|
needed to use the :mod:`zipimport` module explicitly; it is automatically used
|
||||||
by the built-in :keyword:`import` mechanism for ``sys.path`` items that are paths
|
by the built-in :keyword:`import` mechanism for :data:`sys.path` items that are paths
|
||||||
to ZIP archives.
|
to ZIP archives.
|
||||||
|
|
||||||
Typically, ``sys.path`` is a list of directory names as strings. This module
|
Typically, :data:`sys.path` is a list of directory names as strings. This module
|
||||||
also allows an item of ``sys.path`` to be a string naming a ZIP file archive.
|
also allows an item of :data:`sys.path` to be a string naming a ZIP file archive.
|
||||||
The ZIP archive can contain a subdirectory structure to support package imports,
|
The ZIP archive can contain a subdirectory structure to support package imports,
|
||||||
and a path within the archive can be specified to only import from a
|
and a path within the archive can be specified to only import from a
|
||||||
subdirectory. For example, the path :file:`/tmp/example.zip/lib/` would only
|
subdirectory. For example, the path :file:`/tmp/example.zip/lib/` would only
|
||||||
|
|
Loading…
Reference in New Issue