diff --git a/solve_threesixty/api.py b/solve_threesixty/api.py index 9b116cb..c8bd197 100644 --- a/solve_threesixty/api.py +++ b/solve_threesixty/api.py @@ -19,7 +19,7 @@ def clearEmpties(d): """ Removes empty values from a dict. """ - return dict([(k, v) for k, v in d.items() if v and len(v) > 0]) + return {k: v for k, v in d.items() if v and len(v) > 0} logger = logging.getLogger('solve_threesixty')