[Bf-extensions-cvs] [e447df0e] master: Amaranth: Removed flush_modules function not needed anymore
CansecoGPC
noreply at git.blender.org
Mon Dec 9 16:59:15 CET 2019
Commit: e447df0ea4733e96abbf6e59426a2e7f3038445d
Author: CansecoGPC
Date: Mon Dec 9 16:58:57 2019 +0100
Branches: master
https://developer.blender.org/rBAe447df0ea4733e96abbf6e59426a2e7f3038445d
Amaranth: Removed flush_modules function not needed anymore
===================================================================
M 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
More information about the Bf-extensions-cvs
mailing list