Merge "Avoid RuntimeError caused by iteration over sys.modules"
This commit is contained in:
commit
a6f1d2b96e
|
@ -56,7 +56,7 @@ CLSNAME_ALIASES = {
|
|||
('os_ken.lib.packet.ospf', 'StringifyMixin'): ''
|
||||
}
|
||||
|
||||
for modname, moddef in sys.modules.items():
|
||||
for modname, moddef in sys.modules.copy().items():
|
||||
if not modname.startswith(PKT_LIB_PATH) or not moddef:
|
||||
continue
|
||||
for (clsname, clsdef, ) in inspect.getmembers(moddef):
|
||||
|
|
Loading…
Reference in New Issue