summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-03-11 06:07:30 (GMT)
committerGitHub <noreply@github.com>2017-03-11 06:07:30 (GMT)
commit16416c22f9b8d9e067506d3a98f661756c80389c (patch)
treef8fe29c4fd16a8ae4b12cf3543f0de3b146a608a /PC
parent701f13ab930b62a634579951dc610f737f461135 (diff)
downloadcpython-16416c22f9b8d9e067506d3a98f661756c80389c.zip
cpython-16416c22f9b8d9e067506d3a98f661756c80389c.tar.gz
cpython-16416c22f9b8d9e067506d3a98f661756c80389c.tar.bz2
bpo-29770: remove outdated PYO related info (GH-590) (GH-612)
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)