diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1994-12-14 12:58:37 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1994-12-14 12:58:37 +0000 |
commit | 52aa1dae817d169688c283e68c480076517889ed (patch) | |
tree | 197c736483760108dfeff8ad1ad8d485ee32e3a4 /Python/pythonrun.c | |
parent | 16e88717fa8e6c3fe1ff6346634fd2d0c3f1a183 (diff) | |
download | cpython-52aa1dae817d169688c283e68c480076517889ed.tar.gz |
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 712a396e1c..de0de072fe 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; |