Skip to content

Commit bfd2583

Browse files
committed
Remove dict comprehension
1 parent cca9e16 commit bfd2583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

business_rules/engine.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,5 @@ def fallback(*args, **kwargs):
144144
params = action.get('params') or {}
145145
method = getattr(defined_actions, method_name, fallback)
146146
actions_results[method_name] = method(**params)
147-
return {method_name: result for method_name, result in
148-
actions_results.iteritems() if result}
147+
return dict((method_name, result) for method_name, result in
148+
actions_results.iteritems() if result)

0 commit comments

Comments
 (0)