]> granicus.if.org Git - python/commit
bpo-34170: Fix pymain_run_file() (GH-8660)
authorVictor Stinner <vstinner@redhat.com>
Fri, 3 Aug 2018 21:54:06 +0000 (23:54 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Aug 2018 21:54:06 +0000 (23:54 +0200)
commitd8078626770a8d358eb83d7928c12d75ff4e821a
treead7ad443185ae8daa4e7d08a96a4acbe79050455
parent46dc4e34ed8005a688d7f3512844ef227a3465f4
bpo-34170: Fix pymain_run_file() (GH-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.
Modules/main.c