MCPcopy
hub / github.com/pex-tool/pex / load

Method load

testing/devpi.py:44–56  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

42
43 @classmethod
44 def load(cls):
45 # type: () -> Optional[Pidfile]
46 try:
47 with open(cls._PATH) as fp:
48 data = json.load(fp)
49 return cls(url=data["url"], pid=data["pid"], create_time=data["create_time"])
50 except (OSError, IOError, ValueError, KeyError) as e:
51 logger.warning(
52 "Failed to load devpi-server pid file from {path}: {err}".format(
53 path=cls._PATH, err=e
54 )
55 )
56 return None
57
58 @staticmethod
59 def _read_base_url(

Callers 9

launchFunction · 0.45
shutdownFunction · 0.45
reverseMethod · 0.45
install_wheelFunction · 0.45
index_lock_artifactsFunction · 0.45
extract_lock_option_argsFunction · 0.45
assert_build_sdistFunction · 0.45
load_timingsMethod · 0.45
resolve_pip_devFunction · 0.45

Calls

no outgoing calls

Tested by 1

resolve_pip_devFunction · 0.36