mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Removed extraneous fclose() in case of .pyc file argument
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user