diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1994-12-14 12:58:37 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1994-12-14 12:58:37 (GMT) |
commit | e00637bdcf31ed5247de4e3fbea931b52defaf8e (patch) | |
tree | 509c2b9dbbabe32e8a2af119e464fb485cc908af /Python/pythonrun.c | |
parent | 234fd7e4bb96b7d620ff36a69b050224e3f040d1 (diff) | |
download | cpython-e00637bdcf31ed5247de4e3fbea931b52defaf8e.zip cpython-e00637bdcf31ed5247de4e3fbea931b52defaf8e.tar.gz cpython-e00637bdcf31ed5247de4e3fbea931b52defaf8e.tar.bz2 |
Removed extraneous fclose() in case of .pyc file argument
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |