Skip to content

Commit

Permalink
Merge pull request #3265 from BsAtHome/fix_python-warnings
Browse files Browse the repository at this point in the history
Fix Py_UnbufferedStdioFlag deprecation warning
rene-dev authored Jan 21, 2025
2 parents e142f9f + d71c67c commit eabc4e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/emc/pythonplugin/python_plugin.cc
Original file line number Diff line number Diff line change
@@ -326,8 +326,9 @@ PythonPlugin::PythonPlugin(struct _inittab *inittab) :
}
}
}
Py_UnbufferedStdioFlag = 1;
Py_Initialize();
config.buffered_stdio = 0;
Py_InitializeFromConfig(&config);
PyConfig_Clear(&config);
initialize();
}

0 comments on commit eabc4e4

Please sign in to comment.