summaryrefslogtreecommitdiffstats
path: root/PC
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 /PC
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 'PC')
-rw-r--r--PC/getpathp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index 1eeebfe..e7be704 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -185,7 +185,7 @@ exists(wchar_t *filename)
may extend 'filename' by one character.
*/
static int
-ismodule(wchar_t *filename, int update_filename) /* Is module -- check for .pyc/.pyo too */
+ismodule(wchar_t *filename, int update_filename) /* Is module -- check for .pyc too */
{
size_t n;
@@ -196,7 +196,7 @@ ismodule(wchar_t *filename, int update_filename) /* Is module -- check for .pyc/
n = wcsnlen_s(filename, MAXPATHLEN+1);
if (n < MAXPATHLEN) {
int exist = 0;
- filename[n] = Py_OptimizeFlag ? L'o' : L'c';
+ filename[n] = L'c';
filename[n + 1] = L'\0';
exist = exists(filename);
if (!update_filename)