Commit 24162a72 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Cosmetic.

parent b692b36c
......@@ -267,12 +267,12 @@ class ComponentDynamicPackage(ModuleType):
recursively. This method must be called within a lock to avoid side
effects
"""
if sub_package is None:
if sub_package:
package = sub_package
else:
# Clear the Component registry
self.__registry_dict.clear()
package = self
else:
package = sub_package
for name, module in package.__dict__.items():
if name[0] == '_' or not isinstance(module, ModuleType):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment