diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-03-11 06:12:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-11 06:12:29 (GMT) |
commit | ce222c87706b1062f7fc03867d1867aa4848dd7b (patch) | |
tree | c01f84152ac1842011db6dc5a1ebc35fcce0edd8 /PC/getpathp.c | |
parent | 518d8fcb89896dd30fbf11c667ee4e6b509e4dd9 (diff) | |
download | cpython-ce222c87706b1062f7fc03867d1867aa4848dd7b.zip cpython-ce222c87706b1062f7fc03867d1867aa4848dd7b.tar.gz cpython-ce222c87706b1062f7fc03867d1867aa4848dd7b.tar.bz2 |
bpo-29770: remove outdated PYO related info (GH-590) (GH-613)
Diffstat (limited to 'PC/getpathp.c')
-rw-r--r-- | PC/getpathp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c index c7ddf1e..47a571e 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -133,7 +133,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 */ { int n; @@ -144,7 +144,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) |