Corrected test in get_registries iterator
authorThierry Florac <thierry.florac@onf.fr>
Mon, 20 Apr 2015 09:53:15 +0200
changeset 30 80ae7e361ee3
parent 29 4bbddbc10590
child 31 31d5cfdbd741
Corrected test in get_registries iterator
src/pyams_utils/registry.py
--- a/src/pyams_utils/registry.py	Wed Apr 15 14:23:20 2015 +0200
+++ b/src/pyams_utils/registry.py	Mon Apr 20 09:53:15 2015 +0200
@@ -67,13 +67,13 @@
 
 
 def get_registries():
-    """Get iterator on components registries"""
+    """Get iterator of components registries"""
     registry = local_registry.get_registry()
     if registry is not None:
         yield registry
     for entry in reversed(manager.stack):
         registry = entry.get('registry')
-        if entry is not None:
+        if registry is not None:
             yield registry