summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c2
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;