From c60dc43cbe0185bd528563b40a8b454c5a724cce Mon Sep 17 00:00:00 2001
From: Mark Skipper <marks@aptivate.org>
Date: Sun, 21 Jun 2015 21:48:15 +0100
Subject: [PATCH] {} is better than dict()

http://doughellmann.com/2012/11/12/the-performance-impact-of-using-dict-instead-of-in-cpython-2-7-2.html
---
 django/website/data_layer/tests/handler_tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django/website/data_layer/tests/handler_tests.py b/django/website/data_layer/tests/handler_tests.py
index 99345a65..a82bde08 100644
--- a/django/website/data_layer/tests/handler_tests.py
+++ b/django/website/data_layer/tests/handler_tests.py
@@ -13,7 +13,7 @@ class HandlerTests(TestCase):
         now = timezone.now().replace(
             microsecond=0  # MySQL discards microseconds
         )
-        inmessage = dict(body="Text", timestamp=now)
+        inmessage = {'body': "Text", 'timestamp': now}
 
         handlers.Message.create(inmessage)
 
-- 
GitLab