diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-03-11 06:07:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-11 06:07:30 (GMT) |
commit | 16416c22f9b8d9e067506d3a98f661756c80389c (patch) | |
tree | f8fe29c4fd16a8ae4b12cf3543f0de3b146a608a /Doc/library | |
parent | 701f13ab930b62a634579951dc610f737f461135 (diff) | |
download | cpython-16416c22f9b8d9e067506d3a98f661756c80389c.zip cpython-16416c22f9b8d9e067506d3a98f661756c80389c.tar.gz cpython-16416c22f9b8d9e067506d3a98f661756c80389c.tar.bz2 |
bpo-29770: remove outdated PYO related info (GH-590) (GH-612)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/zipfile.rst | 6 | ||||
-rw-r--r-- | Doc/library/zipimport.rst | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index 4c91759..a5d4211 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -464,12 +464,12 @@ The :class:`PyZipFile` constructor takes the same parameters as the added to the archive, compiling if necessary. If *pathname* is a file, the filename must end with :file:`.py`, and - just the (corresponding :file:`\*.py[co]`) file is added at the top level + just the (corresponding :file:`\*.pyc`) file is added at the top level (no path information). If *pathname* is a file that does not end with :file:`.py`, a :exc:`RuntimeError` will be raised. If it is a directory, and the directory is not a package directory, then all the files - :file:`\*.py[co]` are added at the top level. If the directory is a - package directory, then all :file:`\*.py[co]` are added under the package + :file:`\*.pyc` are added at the top level. If the directory is a + package directory, then all :file:`\*.pyc` are added under the package name as a file path, and if any subdirectories are package directories, all of these are added recursively. diff --git a/Doc/library/zipimport.rst b/Doc/library/zipimport.rst index 46b8c24..eaae2bb 100644 --- a/Doc/library/zipimport.rst +++ b/Doc/library/zipimport.rst @@ -9,7 +9,7 @@ -------------- 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:`\*.pyc`) and packages from ZIP-format archives. It is usually not needed to use the :mod:`zipimport` module explicitly; it is automatically used by the built-in :keyword:`import` mechanism for :data:`sys.path` items that are paths to ZIP archives. |