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

Method section_pairs

Lib/importlib/metadata/__init__.py:117–122  ·  view source on GitHub ↗
(cls, text)

Source from the content-addressed store, hash-verified

115
116 @classmethod
117 def section_pairs(cls, text):
118 return (
119 section._replace(value=Pair.parse(section.value))
120 for section in cls.read(text, filter_=cls.valid)
121 if section.name is not None
122 )
123
124 @staticmethod
125 def read(text, filter_=None):

Callers 1

_from_textMethod · 0.80

Calls 3

_replaceMethod · 0.45
parseMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected