MCPcopy Create free account
hub / github.com/kiibohd/controller / get_code

Method get_code

Scan/TestIn/interface.py:56–60  ·  view source on GitHub ↗
( self, fullname )

Source from the content-addressed store, hash-verified

54 Used to work around importlib.util.module_from_spec() not being available.
55 '''
56 def get_code( self, fullname ):
57 source = self.get_source( fullname )
58 path = self.get_filename( fullname )
59 parsed = ast.parse( source )
60 return compile( parsed, path, 'exec', dont_inherit=True, optimize=0 )
61
62
63

Callers

nothing calls this directly

Calls 1

get_filenameMethod · 0.80

Tested by

no test coverage detected