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

Function matcher

numpy/distutils/ccompiler.py:588–606  ·  view source on GitHub ↗
(self, version_string)

Source from the content-addressed store, hash-verified

586
587 """
588 def matcher(self, version_string):
589 # version string may appear in the second line, so getting rid
590 # of new lines:
591 version_string = version_string.replace('\n', ' ')
592 pos = 0
593 if start:
594 m = re.match(start, version_string)
595 if not m:
596 return None
597 pos = m.end()
598 while True:
599 m = re.search(pat, version_string[pos:])
600 if not m:
601 return None
602 if ignore and re.match(ignore, m.group(0)):
603 pos = m.end()
604 continue
605 break
606 return m.group(0)
607 return matcher
608
609def CCompiler_get_version(self, force=False, ok_status=[0]):

Callers 1

CCompiler_get_versionFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected