From 73d6fb4baa5f2cc78e9748d08db39104b0c120df Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 30 Nov 2012 22:31:30 +0000 Subject: [PATCH] Chop the names at '(' if any when checking if the name is in the core module git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etgtools/tweaker_tools.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/etgtools/tweaker_tools.py b/etgtools/tweaker_tools.py index 137f1ff7..5c2b8d4f 100644 --- a/etgtools/tweaker_tools.py +++ b/etgtools/tweaker_tools.py @@ -85,12 +85,17 @@ class FixWxPrefix(object): # the name as 'wx.Name' if FixWxPrefix._coreTopLevelNames is None: self._getCoreTopLevelNames() - - if name in FixWxPrefix._coreTopLevelNames: + + testName = name + if '(' in name: + testName = name[:name.find('(')] + + if testName in FixWxPrefix._coreTopLevelNames: return 'wx.'+name else: return name + def _getCoreTopLevelNames(self): # Since the real wx.core module may not exist yet, and since actually # executing code at this point is probably a bad idea, try parsing the