From e447df0ea4733e96abbf6e59426a2e7f3038445d Mon Sep 17 00:00:00 2001 From: CansecoGPC Date: Mon, 9 Dec 2019 16:58:57 +0100 Subject: Amaranth: Removed flush_modules function not needed anymore --- amaranth/__init__.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'amaranth/__init__.py') diff --git a/amaranth/__init__.py b/amaranth/__init__.py index 3a4dd49f..98fd8b1c 100644 --- a/amaranth/__init__.py +++ b/amaranth/__init__.py @@ -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 -- cgit v1.2.3