We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cf5f36 commit e77f083Copy full SHA for e77f083
1 file changed
cherrypy/process/plugins.py
@@ -626,7 +626,10 @@ def start(self):
626
627
def sysfiles(self):
628
"""Return a Set of sys.modules filenames to monitor."""
629
- search_mod_names = filter(re.compile(self.match).match, sys.modules[:])
+ search_mod_names = filter(
630
+ re.compile(self.match).match,
631
+ list(sys.modules.keys()),
632
+ )
633
mods = map(sys.modules.get, search_mod_names)
634
return set(filter(None, map(self._file_for_module, mods)))
635
0 commit comments