Skip to content

Commit d3150c5

Browse files
committed
avoid compiler warning ..\PythonScript\src\PythonHandler.cpp(318,18): warning C4996: '_Py_fopen_obj': deprecated in 3.14
1 parent aebb67c commit d3150c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonScript/src/PythonHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ void PythonHandler::runScriptWorker(const std::shared_ptr<RunScriptArgs>& args)
315315
else
316316
{
317317
PyObject* obj = Py_BuildValue("s", WcharMbcsConverter::tchar2char(args->m_filename.c_str()).get());
318-
FILE* pyFile = _Py_fopen_obj(obj, "rb");
318+
FILE* pyFile = Py_fopen(obj, "rb");
319319
if (pyFile)
320320
{
321321
if (PyRun_SimpleFileEx(pyFile, WcharMbcsConverter::tchar2char(args->m_filename.c_str()).get(), 1) == -1)

0 commit comments

Comments
 (0)