diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-03-11 05:02:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-11 05:02:52 (GMT) |
commit | 0710d754255e731e6fcc3f206b51db6156da17c8 (patch) | |
tree | f3d24f09ed0c3ba415d99a070d9cdc7bdd460123 /Doc/library/zipfile.rst | |
parent | 70ee0cd5c2a3dba82cb8e0c0742c012f9134c040 (diff) | |
download | cpython-0710d754255e731e6fcc3f206b51db6156da17c8.zip cpython-0710d754255e731e6fcc3f206b51db6156da17c8.tar.gz cpython-0710d754255e731e6fcc3f206b51db6156da17c8.tar.bz2 |
bpo-29770: remove outdated PYO related info (GH-590)
Diffstat (limited to 'Doc/library/zipfile.rst')
-rw-r--r-- | Doc/library/zipfile.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index 4cde1dd..5b8c776 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. |