MCPcopy
hub / github.com/cherrypy/cherrypy / sysfiles

Method sysfiles

cherrypy/process/plugins.py:626–633  ·  view source on GitHub ↗

Return a Set of sys.modules filenames to monitor.

(self)

Source from the content-addressed store, hash-verified

624 start.priority = 70
625
626 def sysfiles(self):
627 """Return a Set of sys.modules filenames to monitor."""
628 search_mod_names = filter(
629 re.compile(self.match).match,
630 list(sys.modules.keys()),
631 )
632 mods = map(sys.modules.get, search_mod_names)
633 return set(filter(None, map(self._file_for_module, mods)))
634
635 @classmethod
636 def _file_for_module(cls, module):

Callers 1

runMethod · 0.95

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected