Amaranth: Removed flush_modules function not needed anymore

This commit is contained in:
CansecoGPC 2019-12-09 16:58:57 +01:00
parent 75af6e5dcf
commit e447df0ea4
1 changed files with 0 additions and 8 deletions

View File

@ -103,17 +103,9 @@ def _call_globals(attr_name):
getattr(m, attr_name)()
def _flush_modules(pkg_name):
pkg_name = pkg_name.lower()
for k in tuple(sys.modules.keys()):
if k.lower().startswith(pkg_name):
del sys.modules[k]
def register():
_call_globals("register")
def unregister():
_call_globals("unregister")
_flush_modules("amaranth") # reload amaranth