MCPcopy Index your code
hub / github.com/drathier/stack-overflow-import / exec_module

Method exec_module

stackoverflow/__init__.py:33–40  ·  view source on GitHub ↗

Exec a built-in module

(cls, module=None)

Source from the content-addressed store, hash-verified

31
32 @classmethod
33 def exec_module(cls, module=None):
34 """Exec a built-in module"""
35 try:
36 exec(module._code, module.__dict__)
37 except:
38 print(module._url)
39 print(module._code)
40 raise
41
42 @classmethod
43 def get_code(cls, fullname):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected