interfaces/python: remove use of deprecated method '_Py_fopen_obj'#27567
Conversation
|
Critical Incorrect function signature (xbmc/interfaces/python/PythonInvoker.cpp:310)
The code passes Suggested fix: |
|
A different fix for the problem is included in #27391 |
|
Isn't |
Yep, I missed that. No worries. I only noticed because fedora 43 ships with python 3.14 So it's probably worth getting that fix for the warning in. I can just cherry-pick your commit if desired. |
|
Sure, just cherry pick the commit from my PR, saves me one rebase |
this fixes the following warning:
xbmc/interfaces/python/PythonInvoker.cpp:310:31: warning: ‘FILE* _Py_fopen_obj(PyObject*, const char*)’ is deprecated [-Wdeprecated-declarations]
310 | FILE* fp = _Py_fopen_obj(pyRealFilename, rb);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
3011ec8 to
5835d13
Compare
Done, I just updated the commit message a little bit. |
this fixes the following warning:
xbmc/interfaces/python/PythonInvoker.cpp:310:31: warning: ‘FILE* _Py_fopen_obj(PyObject*, const char*)’ is deprecated [-Wdeprecated-declarations]
310 | FILE* fp = _Py_fopen_obj(pyRealFilename, rb);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Description
Motivation and context
How has this been tested?
What is the effect on users?
Screenshots (if appropriate):
Types of change
Checklist: