mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Removed extraneous fclose() in case of .pyc file argument
This commit is contained in:
parent
234fd7e4bb
commit
e00637bdcf
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ run_script(fp, filename)
|
|||
ext = filename + strlen(filename) - 4;
|
||||
if ( strcmp(ext, ".pyc") == 0 ) {
|
||||
/* Try to run a pyc file. First, re-open in binary */
|
||||
fclose(fp);
|
||||
/* Don't close, done in main: fclose(fp); */
|
||||
if( (fp = fopen(filename, "rb")) == NULL ) {
|
||||
fprintf(stderr, "python: Can't reopen .pyc file\n");
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue