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

Method get_code

stackoverflow/__init__.py:43–44  ·  view source on GitHub ↗
(cls, fullname)

Source from the content-addressed store, hash-verified

41
42 @classmethod
43 def get_code(cls, fullname):
44 return compile(cls._fetch_code(cls._fetch_url(fullname)), 'StackOverflow.com/' + fullname, 'exec')
45
46 @classmethod
47 def get_source(cls, fullname):

Callers 1

get_sourceMethod · 0.80

Calls 2

_fetch_codeMethod · 0.80
_fetch_urlMethod · 0.80

Tested by

no test coverage detected