[3.13] gh-119102: Fix REPL for dumb terminal (GH-119332) (#119359)

The site module gets the __main__ module to get _pyrepl.__main__.
(cherry picked from commit de8f530841b55885b919677a6938ab33d4a92f20)

Co-authored-by: Victor Stinner <vstinner@python.org>
1 file changed