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

Class FormatError

numpy/distutils/npy_pkg_config.py:12–21  ·  view source on GitHub ↗

Exception thrown when there is a problem parsing a configuration file.

Source from the content-addressed store, hash-verified

10_VAR = re.compile(r'\$\{([a-zA-Z0-9_-]+)\}')
11
12class FormatError(OSError):
13 """
14 Exception thrown when there is a problem parsing a configuration file.
15
16 """
17 def __init__(self, msg):
18 self.msg = msg
19
20 def __str__(self):
21 return self.msg
22
23class PkgNotFound(OSError):
24 """Exception raised when a package can not be located."""

Callers 2

parse_metaFunction · 0.85
parse_variablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected