parameters: (self, fullname)
return_statement: return mod
docstring: load_module(fullname) -> module.
  
          Load the module specified by 'fullname'. 'fullname' must be the
          fully qualified (dotted) module name. It returns the imported
          module, or raises ZipImportError if it wasn't found.
docstring_summary: load_module(fullname) -> module.
docstring_tokens: load_module ( fullname ) - > module .
function: def load_module(self, fullname):
          """load_module(fullname) -> module.
  
          Load the module specified by 'fullname'. 'fullname' must be the
          fully qualified (dotted) module name. It returns the imported
          module, or raises ZipImportError if it wasn't found.
          """
          code, ispackage, modpath = _get_module_code(self, fullname)
          mod = sys.modules.get(fullname)
          if mod is None or not isinstance(mod, _module_type):
              mod = _module_type(fullname)
              sys.modules[fullname] = mod
          mod.__loader__ = self
  
          try:
              if ispackage:
                  # add __path__ to the module *before* the code gets
                  # executed
                  path = _get_module_path(self, fullname)
                  fullpath = _bootstrap_external._path_join(self.archive, path)
                  mod.__path__ = [fullpath]
  
              if not hasattr(mod, '__builtins__'):
                  mod.__builtins__ = __builtins__
              _bootstrap_external._fix_up_module(mod.__dict__, fullname, modpath)
              exec(code, mod.__dict__)
          except:
              del sys.modules[fullname]
              raise
  
          try:
              mod = sys.modules[fullname]
          except KeyError:
              raise ImportError(f'Loaded module {fullname!r} not found in sys.modules')
          _bootstrap._verbose_message('import {} # loaded from Zip {}', fullname, modpath)
          return mod
function_tokens: def load_module ( self , fullname ) : code , ispackage , modpath = _get_module_code ( self , fullname ) mod = sys . modules . get ( fullname ) if mod is None or not isinstance ( mod , _module_type ) : mod = _module_type ( fullname ) sys . modules [ fullname ] = mod mod . __loader__ = self try : if ispackage : # add __path__ to the module *before* the code gets # executed path = _get_module_path ( self , fullname ) fullpath = _bootstrap_external . _path_join ( self . archive , path ) mod . __path__ = [ fullpath ] if not hasattr ( mod , '__builtins__' ) : mod . __builtins__ = __builtins__ _bootstrap_external . _fix_up_module ( mod . __dict__ , fullname , modpath ) exec ( code , mod . __dict__ ) except : del sys . modules [ fullname ] raise try : mod = sys . modules [ fullname ] except KeyError : raise ImportError ( f'Loaded module {fullname!r} not found in sys.modules' ) _bootstrap . _verbose_message ( 'import {} # loaded from Zip {}' , fullname , modpath ) return mod