From fd71827916c713038f9fff8db725f2d9d025b236 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 19 Dec 2011 20:56:36 +0000 Subject: [PATCH] Ignore all global operator functions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/geometry.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/etg/geometry.py b/etg/geometry.py index 563ccb2a..af7dccd9 100644 --- a/etg/geometry.py +++ b/etg/geometry.py @@ -86,12 +86,12 @@ def run(): c.find('operator*=').findOverload('wxInt32').ignore() c.find('operator/=').findOverload('wxInt32').ignore() - # ignore some of the global operators too + + # ignore all the global operators too, there is no equivallent in Python for item in module: - if isinstance(item, etgtools.FunctionDef) and item.type == 'wxPoint2DInt': - item.ignore() - if item.name in ['operator*', 'operator/'] and 'wxInt32' in item.argsString: - item.ignore() + if isinstance(item, etgtools.FunctionDef) and item.name.startswith('operator'): + for f in item.all(): + f.ignore() c = module.find('wxRect2DDouble')