diff --git a/sat/tools/common/data_objects.py b/sat/tools/common/data_objects.py index 350a1549..3a264749 100644 --- a/sat/tools/common/data_objects.py +++ b/sat/tools/common/data_objects.py @@ -379,10 +379,13 @@ class Identity(object): raise AttributeError(key) -class Identities(object): +class Identities: def __init__(self): self.identities = {} + def __iter__(self): + return iter(self.identities) + def __getitem__(self, jid_str): try: return self.identities[jid_str]