mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-07 12:21:17 +03:00
applied patch from Malcolm Tredinnick fixing bug #154294 related to saving
* python/generator.py python/libxml.c python/tests/outbuf.py: applied patch from Malcolm Tredinnick fixing bug #154294 related to saving to python file objects. Daniel
This commit is contained in:
@ -300,6 +300,13 @@ unknown_types = {}
|
||||
#
|
||||
#######################################################################
|
||||
|
||||
# Class methods which are written by hand in libxml.c but the Python-level
|
||||
# code is still automatically generated (so they are not in skip_function()).
|
||||
skip_impl = (
|
||||
'xmlSaveFileTo',
|
||||
'xmlSaveFormatFileTo',
|
||||
)
|
||||
|
||||
def skip_function(name):
|
||||
if name[0:12] == "xmlXPathWrap":
|
||||
return 1
|
||||
@ -356,6 +363,9 @@ def print_function_wrapper(name, output, export, include):
|
||||
return 0
|
||||
if skip_function(name) == 1:
|
||||
return 0
|
||||
if name in skip_impl:
|
||||
# Don't delete the function entry in the caller.
|
||||
return 1
|
||||
|
||||
c_call = "";
|
||||
format=""
|
||||
|
Reference in New Issue
Block a user