MCPcopy Create free account
hub / github.com/cvxpy/cvxpy / _read_sections

Method _read_sections

doc/sphinxext/docscrape.py:175–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 return section
174
175 def _read_sections(self):
176 while not self._doc.eof():
177 data = self._read_to_next_section()
178 name = data[0].strip()
179
180 if name.startswith('..'): # index section
181 yield name, data[1:]
182 elif len(data) < 2:
183 yield StopIteration
184 else:
185 yield name, self._strip(data[2:])
186
187 def _parse_param_list(self,content):
188 r = Reader(content)

Callers 1

_parseMethod · 0.95

Calls 3

_read_to_next_sectionMethod · 0.95
_stripMethod · 0.95
eofMethod · 0.80

Tested by

no test coverage detected