Commit c87b655d authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Improve code consistency

Showing with 2 additions and 2 deletions
+2 -2
...@@ -25,8 +25,8 @@ SPECS = {'model': {'default': os.path.basename(__file__).rstrip('.py')}, ...@@ -25,8 +25,8 @@ SPECS = {'model': {'default': os.path.basename(__file__).rstrip('.py')},
class Ctl(CtlAbstract): class Ctl(CtlAbstract):
def __init__(self, **kwargs): def __init__(self, **kwargs):
if 'model' not in kwargs.keys(): if 'model' not in kwargs.keys():
for key in SPECS['tx'].keys(): for key in SPECS.keys():
kwargs = enforce_specs(kwargs, SPECS['tx'], key) kwargs = enforce_specs(kwargs, SPECS, key)
subclass_init = False subclass_init = False
else: else:
subclass_init = True subclass_init = True
......
Supports Markdown
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