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

Method parse

pex/sysconfig.py:75–81  ·  view source on GitHub ↗
(cls, value)

Source from the content-addressed store, hash-verified

73
74 @classmethod
75 def parse(cls, value):
76 # type: (str) -> Optional[LibC.Value]
77 if "current" == value:
78 return cls.CURRENT
79 if Os.CURRENT is Os.LINUX:
80 return cls.for_value(value)
81 return None
82
83
84LibC.seal()

Callers

nothing calls this directly

Calls 1

for_valueMethod · 0.45

Tested by

no test coverage detected