mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
bpo-29770: remove outdated PYO related info (GH-590)
This commit is contained in:
parent
70ee0cd5c2
commit
0710d75425
10 changed files with 25 additions and 31 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue