From: Berker Peksag Date: Mon, 4 Aug 2014 19:06:40 +0000 (+0300) Subject: Make sort_keys True to avoid hash randomize feature in Python 3. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6fa978241583b8d618cd22bfb53f657a64580c03;p=mediagoblin.git Make sort_keys True to avoid hash randomize feature in Python 3. --- diff --git a/mediagoblin/plugins/api/views.py b/mediagoblin/plugins/api/views.py index a9aaacee..02fd8107 100644 --- a/mediagoblin/plugins/api/views.py +++ b/mediagoblin/plugins/api/views.py @@ -104,7 +104,7 @@ def api_test(request): # TODO: This is the *only* thing using Response() here, should that # not simply use json_response()? - return Response(json.dumps(user_data)) + return Response(json.dumps(user_data, sort_keys=True)) def get_entries(request):