More string module migrations

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-15 00:23:35 +00:00
parent 56d3350d72
commit 5c07db1928
6 changed files with 16 additions and 19 deletions

View File

@@ -14,7 +14,7 @@ wx.wxXmlNodePtr = wxXmlNodePtr
def _my_import(name):
mod = __import__(name)
components = string.split(name, '.')
components = name.split('.')
for comp in components[1:]:
mod = getattr(mod, comp)
return mod