Merge pull request #427 from vstinner/fopen

Fix #426: Replace _Py_fopen() with fopen() in pythonmod.c
This commit is contained in:
Wouter Wijngaards 2021-02-16 11:58:56 +01:00 committed by GitHub
commit 490d4c26cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
- Fix #422: IPv6 fallback issues when IPv6 is not properly
enabled/configured.
- Fix to make tests work with support indicators set for iterator.
- Fix build on Python 3.10.
10 February 2021: Wouter
- Merge PR #420 from dyunwei: DOH not responsing with

View file

@ -338,7 +338,7 @@ int pythonmod_init(struct module_env* env, int id)
PyFileObject = PyFile_FromString((char*)pe->fname, "r");
script_py = PyFile_AsFile(PyFileObject);
#else
script_py = _Py_fopen(pe->fname, "r");
script_py = fopen(pe->fname, "r");
#endif
if (script_py == NULL)
{