parameters: (modpath, attrname)
return_statement: return retval
docstring: imports a module, then resolves the attrname on it
docstring_summary: imports a module, then resolves the attrname on it
docstring_tokens: imports a module then resolves the attrname on it
function: def importobj(modpath, attrname):
      """imports a module, then resolves the attrname on it"""
      module = __import__(modpath, None, None, ["__doc__"])
      if not attrname:
          return module
  
      retval = module
      names = attrname.split(".")
      for x in names:
          retval = getattr(retval, x)
      return retval
function_tokens: def importobj ( modpath , attrname ) : module = __import__ ( modpath , None , None , [ "__doc__" ] ) if not attrname : return module retval = module names = attrname . split ( "." ) for x in names : retval = getattr ( retval , x ) return retval