From c544e1a830528f0d9fff7082b503b88c1aecc1d1 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 16 Jun 2016 10:10:36 +0100 Subject: [PATCH] Fix unpacking syntax for Python 3.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python 3.5 introduced the ability to do unpacking before keyword arguments, eg ``` my_method(**dictionary, foo=bar) ``` This was introduced in https://www.python.org/dev/peps/pep-0448/ This is not valid syntax in Python 3.4, which is what’s running on our boxes. This commit changes an instance of this syntax which was introduced in 56d9c29e915fffd9274fb73714df1e0e86a8caf1 --- app/statistics_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/statistics_utils.py b/app/statistics_utils.py index efe6ffe00..cba2484af 100644 --- a/app/statistics_utils.py +++ b/app/statistics_utils.py @@ -84,6 +84,6 @@ def get_failure_rate_for_job(job): def add_rate_to_jobs(jobs): return [dict( - **job, - failure_rate=(get_failure_rate_for_job(job)) * 100 + failure_rate=(get_failure_rate_for_job(job)) * 100, + **job ) for job in jobs]