MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / _getMaintainer

Method _getMaintainer

tools/PythonExtensionChecker.py:295–307  ·  view source on GitHub ↗

// $Maintainer: xxx $ // $Authors: xxx $

(self)

Source from the content-addressed store, hash-verified

293 return None
294
295 def _getMaintainer(self):
296 """
297 // $Maintainer: xxx $
298 // $Authors: xxx $
299 """
300 maintainer_reg = re.compile(".*\$\s*Maintainer:([^\$]*)\$")
301 with open(self.fname) as f:
302 data = f.read()
303 maintainer = maintainer_reg.search(data)
304 if maintainer is not None:
305 return maintainer.group(1).strip()
306 else:
307 return None
308
309
310#

Callers 1

getMaintainerMethod · 0.95

Calls 3

searchMethod · 0.80
readMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected