diff options
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/main.c b/Modules/main.c index 34e99b9..9afe80b 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -268,11 +268,10 @@ Py_Main(int argc, char **argv) } } } - sts = PyRun_AnyFile( + sts = PyRun_AnyFileEx( fp, - filename == NULL ? "<stdin>" : filename) != 0; - if (filename != NULL) - fclose(fp); + filename == NULL ? "<stdin>" : filename, + filename != NULL) != 0; } if (inspect && stdin_is_interactive && |