From 0710d754255e731e6fcc3f206b51db6156da17c8 Mon Sep 17 00:00:00 2001 From: Xiang Zhang Date: Sat, 11 Mar 2017 13:02:52 +0800 Subject: bpo-29770: remove outdated PYO related info (GH-590) --- Doc/library/zipfile.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Doc/library/zipfile.rst') diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index 4cde1dd76a..5b8c776ed6 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. -- cgit v1.2.1