[3.7] bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918) by miss-islington · Pull Request #8070 · python/cpython

@ZackerySpytz @miss-islington

…ythonGH-7918)

PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
(cherry picked from commit d8cba5d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

@bedevere-bot mentioned this pull request

Jul 3, 2018