From e00637bdcf31ed5247de4e3fbea931b52defaf8e Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 14 Dec 1994 12:58:37 +0000 Subject: Removed extraneous fclose() in case of .pyc file argument --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 712a396..de0de07 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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; -- cgit v0.12