summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-03-11 06:12:29 (GMT)
committerGitHub <noreply@github.com>2017-03-11 06:12:29 (GMT)
commitce222c87706b1062f7fc03867d1867aa4848dd7b (patch)
treec01f84152ac1842011db6dc5a1ebc35fcce0edd8 /Doc/library
parent518d8fcb89896dd30fbf11c667ee4e6b509e4dd9 (diff)
downloadcpython-ce222c87706b1062f7fc03867d1867aa4848dd7b.zip
cpython-ce222c87706b1062f7fc03867d1867aa4848dd7b.tar.gz
cpython-ce222c87706b1062f7fc03867d1867aa4848dd7b.tar.bz2
bpo-29770: remove outdated PYO related info (GH-590) (GH-613)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/zipfile.rst6
-rw-r--r--Doc/library/zipimport.rst2
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index d144ae3..629b7ed 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -418,12 +418,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.