mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user