bpo-34170: Fix pymain_run_file() (GH-8660) · pythoncapi/cpython@d807862 · GitHub
Skip to content

Commit d807862

Browse files
authored
bpo-34170: Fix pymain_run_file() (pythonGH-8660)
bpo-34170, bpo-34326: Fix pymain_run_file(): use PyRun_AnyFileExFlags(closeit=1) instead of calling fclose(fp) explicitly to close the input file before running the code.
1 parent 46dc4e3 commit d807862

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Modules/main.c

Lines changed: 6 additions & 6 deletions

0 commit comments

Comments
 (0)