MCPcopy Create free account
hub / github.com/numpy/numpy / parse_variables

Function parse_variables

numpy/distutils/npy_pkg_config.py:232–241  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

230 return d
231
232def parse_variables(config):
233 if not config.has_section('variables'):
234 raise FormatError("No variables section found !")
235
236 d = {}
237
238 for name, value in config.items("variables"):
239 d[name] = value
240
241 return VariableSet(d)
242
243def parse_sections(config):
244 return meta_d, r

Callers

nothing calls this directly

Calls 2

FormatErrorClass · 0.85
VariableSetClass · 0.85

Tested by

no test coverage detected