summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/components.py
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2021-06-05 09:59:24 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-01-10 20:48:40 +0100
commitc3b9d5557161f840a8f2c45fc91ec09299593dd9 (patch)
tree93105906638753c8d040af85226f30ae63963cbf /pykolab/setup/components.py
parent991255eaa314b51e2dd586460311d4633a56eb86 (diff)
downloadpykolab-c3b9d5557161f840a8f2c45fc91ec09299593dd9.tar.gz
[Python 3] Remove unnecessary occurrences of .keys()
Summary: The following cases are covered: * for key in dict * if key in dict * len(dict) This will make life easier for futurize. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3235
Diffstat (limited to 'pykolab/setup/components.py')
-rw-r--r--pykolab/setup/components.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/setup/components.py b/pykolab/setup/components.py
index 5cc7b58..f68bb48 100644
--- a/pykolab/setup/components.py
+++ b/pykolab/setup/components.py
@@ -64,7 +64,7 @@ def list_components(*args, **kw):
__components = {}
- for component in components.keys():
+ for component in components:
if isinstance(component, tuple):
component_group, component = component
__components[component_group] = {
@@ -104,7 +104,7 @@ def _list_components(*args, **kw):
__components = {}
- for component in components.keys():
+ for component in components:
if isinstance(component, tuple):
component_group, component = component
__components[component_group] = {