summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-03-11 05:02:52 (GMT)
committerGitHub <noreply@github.com>2017-03-11 05:02:52 (GMT)
commit0710d754255e731e6fcc3f206b51db6156da17c8 (patch)
treef3d24f09ed0c3ba415d99a070d9cdc7bdd460123 /Modules/zipimport.c
parent70ee0cd5c2a3dba82cb8e0c0742c012f9134c040 (diff)
downloadcpython-0710d754255e731e6fcc3f206b51db6156da17c8.zip
cpython-0710d754255e731e6fcc3f206b51db6156da17c8.tar.gz
cpython-0710d754255e731e6fcc3f206b51db6156da17c8.tar.bz2
bpo-29770: remove outdated PYO related info (GH-590)
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r--Modules/zipimport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 18777b2..a74f6c7 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -1101,7 +1101,7 @@ get_decompress_func(void)
_Py_IDENTIFIER(decompress);
if (importing_zlib != 0)
- /* Someone has a zlib.py[co] in their Zip file;
+ /* Someone has a zlib.pyc in their Zip file;
let's avoid a stack overflow. */
return NULL;
importing_zlib = 1;
@@ -1260,7 +1260,7 @@ eq_mtime(time_t t1, time_t t2)
return d <= 1;
}
-/* Given the contents of a .py[co] file in a buffer, unmarshal the data
+/* Given the contents of a .pyc file in a buffer, unmarshal the data
and return the code object. Return None if it the magic word doesn't
match (we do this instead of raising an exception as we fall back
to .py if available and we don't want to mask other errors).
@@ -1400,7 +1400,7 @@ get_mtime_of_source(ZipImporter *self, PyObject *path)
PyObject *toc_entry, *stripped;
time_t mtime;
- /* strip 'c' or 'o' from *.py[co] */
+ /* strip 'c' from *.pyc */
if (PyUnicode_READY(path) == -1)
return (time_t)-1;
stripped = PyUnicode_FromKindAndData(PyUnicode_KIND(path),