Removed extraneous fclose() in case of .pyc file argument

This commit is contained in:
Jack Jansen 1994-12-14 12:58:37 +00:00
parent 234fd7e4bb
commit e00637bdcf
1 changed files with 1 additions and 1 deletions

View File

@ -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;