1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-18 16:08:59 +03:00

io: Deprecate xmlOutputBuffer members

This commit is contained in:
Nick Wellnhofer
2025-07-23 02:20:13 +02:00
parent 6c0188549b
commit af464de1f3
2 changed files with 14 additions and 8 deletions

View File

@@ -516,6 +516,7 @@ libxml_outputBufferGetPythonFile(ATTRIBUTE_UNUSED PyObject *self,
Py_INCREF(Py_None);
return(Py_None);
}
XML_IGNORE_DEPRECATION_WARNINGS
if (obj->closecallback != xmlPythonFileClose) {
fprintf(stderr,
"outputBufferGetPythonFile: not a python file wrapper\n");
@@ -527,6 +528,7 @@ libxml_outputBufferGetPythonFile(ATTRIBUTE_UNUSED PyObject *self,
Py_INCREF(Py_None);
return(Py_None);
}
XML_POP_WARNINGS
Py_INCREF(file);
return(file);
}