'Import any sub-modules in the "from" list.'

def _import_fromlist(self, package, fromlist):

    if ('*' in fromlist):
        fromlist = (list(fromlist) + list(package.__dict__.get('__all__', [])))
    for sub in fromlist:
        if ((sub != '*') and (not hasattr(package, sub))):
            subname = ('%s.%s' % (package.__name__, sub))
            submod = self._import_one(package, sub, subname)
            if (not submod):
                raise ImportError, ('cannot    import    name    ' + subname)
