SIGN IN SIGN UP

bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642)

Fix encoding name when running a ".pyc" file on Windows:
PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
filename.

* Add pyrun_file() subfunction.
* Add pyrun_simple_file() subfunction.
* PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
  _Py_fopen().
V
Victor Stinner committed
b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d
Parent: 233fddf
Committed by GitHub <noreply@github.com> on 12/8/2020, 1:38:08 PM