Skip to content

Commit e77f083

Browse files
committed
Fix incorrect copying of module names @ autoreload
1 parent 0cf5f36 commit e77f083

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cherrypy/process/plugins.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,10 @@ def start(self):
626626

627627
def sysfiles(self):
628628
"""Return a Set of sys.modules filenames to monitor."""
629-
search_mod_names = filter(re.compile(self.match).match, sys.modules[:])
629+
search_mod_names = filter(
630+
re.compile(self.match).match,
631+
list(sys.modules.keys()),
632+
)
630633
mods = map(sys.modules.get, search_mod_names)
631634
return set(filter(None, map(self._file_for_module, mods)))
632635

0 commit comments

Comments
 (0)