MCPcopy Index your code
hub / github.com/python/cpython / get_source

Method get_source

Lib/importlib/abc.py:133–139  ·  view source on GitHub ↗

Abstract method which should return the source code for the module. The fullname is a str. Returns a str. Raises ImportError if the module cannot be found.

(self, fullname)

Source from the content-addressed store, hash-verified

131
132 @abc.abstractmethod
133 def get_source(self, fullname):
134 """Abstract method which should return the source code for the
135 module. The fullname is a str. Returns a str.
136
137 Raises ImportError if the module cannot be found.
138 """
139 raise ImportError
140
141 @staticmethod
142 def source_to_code(data, path='<string>', fullname=None):

Callers 2

get_codeMethod · 0.95
get_codeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected