MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_source

Method get_source

crates/wasm/Lib/whlimport.py:119–124  ·  view source on GitHub ↗
(cls, fullname)

Source from the content-addressed store, hash-verified

117
118 @classmethod
119 def get_source(cls, fullname):
120 spec = cls.find_spec(fullname)
121 if spec:
122 return cls._get_source(spec)
123 else:
124 raise ImportError("cannot find source for module", name=fullname)
125
126 @classmethod
127 def _get_source(cls, spec):

Callers

nothing calls this directly

Calls 2

_get_sourceMethod · 0.80
find_specMethod · 0.45

Tested by

no test coverage detected