MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / load_module

Method load_module

tools/python-3.11.9-amd64/Lib/pkgutil.py:284–293  ·  view source on GitHub ↗
(self, fullname)

Source from the content-addressed store, hash-verified

282 self.etc = etc
283
284 def load_module(self, fullname):
285 self._reopen()
286 try:
287 mod = imp.load_module(fullname, self.file, self.filename, self.etc)
288 finally:
289 if self.file:
290 self.file.close()
291 # Note: we don't set __loader__ because we want the module to look
292 # normal; i.e. this is just a wrapper for standard import machinery
293 return mod
294
295 def get_data(self, pathname):
296 with open(pathname, "rb") as file:

Callers

nothing calls this directly

Calls 2

_reopenMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected