Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCansecoGPC <machaquiro@yahoo.es>2019-12-09 18:58:57 +0300
committerCansecoGPC <machaquiro@yahoo.es>2019-12-09 18:58:57 +0300
commite447df0ea4733e96abbf6e59426a2e7f3038445d (patch)
tree10f46f7dffd08f01766bee9b4bfd42023ff499c1 /amaranth
parent75af6e5dcf84cc2d2693374a01ecbad0f874701b (diff)
Amaranth: Removed flush_modules function not needed anymore
Diffstat (limited to 'amaranth')
-rw-r--r--amaranth/__init__.py8
1 files changed, 0 insertions, 8 deletions
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