From 9705f1a5e858108d21a0128556f42b25d16833cd Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 28 Oct 2004 09:07:41 +0000 Subject: Load /tmp/tmp.SgII7T/libxml2-2.6.15 into packages/libxml2/branches/upstream/current. --- python/generator.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python/generator.py') diff --git a/python/generator.py b/python/generator.py index df89c4e..04b3832 100755 --- a/python/generator.py +++ b/python/generator.py @@ -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="" -- cgit v1.2.3